Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 67810d03ada515381702f7b70888f800 > files > 521

tortoisehg-4.9.1-1.mga7.noarch.rpm


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>5.9. Synchronize &#8212; TortoiseHg 4.7.0 documentation</title>
    <link rel="stylesheet" href="_static/tortoisehg.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <script type="text/javascript" src="_static/language_data.js"></script>
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="5.10. Serve" href="serve.html" />
    <link rel="prev" title="5.8. Shelve" href="shelve.html" />
   
  <link rel="stylesheet" href="_static/custom.css" type="text/css" />
  
  
  <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />

  </head><body>
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          

          <div class="body" role="main">
            
  <div class="section" id="module-synchronize.dialog">
<span id="synchronize"></span><h1>5.9. Synchronize<a class="headerlink" href="#module-synchronize.dialog" title="Permalink to this headline">¶</a></h1>
<div class="figure" id="id1">
<img alt="Synchronize dialog" src="_images/synchronize.png" />
<p class="caption"><span class="caption-text">Synchronize dialog</span></p>
</div>
<p>The synchronize tool is used to transmit changesets between repositories
or to email recipients.</p>
<blockquote>
<div><dl class="docutils">
<dt><span class="guilabel">Incoming</span></dt>
<dd>show changesets that would be pulled from target repository, the
changes in the target repository that are not in local repository</dd>
<dt><span class="guilabel">Pull</span></dt>
<dd>pull incoming changesets from target repository</dd>
<dt><span class="guilabel">Outgoing</span></dt>
<dd>show changesets that would be pushed to target repository, the
changes in the local repository that are not in target
repository</dd>
<dt><span class="guilabel">Push</span></dt>
<dd>push outgoing changesets to target repository, make the local
<em>tip</em> the new <em>tip</em> in the target repository</dd>
<dt><span class="guilabel">Email</span></dt>
<dd>send outgoing changesets (to target repository) as email</dd>
<dt><span class="guilabel">Stop</span></dt>
<dd>stop current operation</dd>
</dl>
</div></blockquote>
<p>The <span class="guilabel">Post Pull</span> dialog contains radio buttons for selecting
the operation which is performed after a pull.  If you open the
configuration tool, you can select a default behavior for your user
account and override that selection on a per-repository basis.</p>
<blockquote>
<div><dl class="docutils">
<dt><span class="guilabel">None</span></dt>
<dd>No operations are performed after a pull.  You will be allowed to
view the pulled changesets in the log viewer, and you will have the
option to update to the new tip if applicable.</dd>
<dt><span class="guilabel">Update</span></dt>
<dd>Automatically update to the current branch tip if, and only if, new
revisions were pulled into the local repository.  This could trigger
a merge if the pulled changes conflict with local uncommitted
changes.</dd>
<dt><span class="guilabel">Fetch</span></dt>
<dd>Equivalent to hg fetch.  See the fetch extension documentation for
its behavior.  This feature is only available if the fetch
extension has been enabled by the user.</dd>
<dt><span class="guilabel">Rebase</span></dt>
<dd>Equivalent to pull –rebase.  See the rebase extension
documentation for its behavior.  This feature is only available
if the rebase extension has been enabled by the user.</dd>
<dt><span class="guilabel">Automatically resolve merge conflicts where possible</span></dt>
<dd>If update or rebase are selected, a pull operation may result in
a merge.  If checked, Mercurial will try to resolve trivial
merge conflicts without user interaction.  If not checked, all
merges will be interactive.</dd>
</dl>
</div></blockquote>
<p>The <span class="guilabel">Options</span> dialog provides checkboxes for selecting
infrequently used command options.</p>
<blockquote>
<div><dl class="docutils">
<dt><span class="guilabel">Allow push of a new branch</span></dt>
<dd>allow a new named branch to be pushed</dd>
<dt><span class="guilabel">Force pull or push</span></dt>
<dd>override warnings about multiple heads or unrelated repositories</dd>
<dt><span class="guilabel">Recurse into subdirectories</span></dt>
<dd>incoming or outgoing commands can recurse into subdirectories
and provide a full report</dd>
<dt><span class="guilabel">Temporarily disable configured proxy</span></dt>
<dd>only sensitive when a web proxy is configured for the given
repository.  While checked it will disable that proxy.</dd>
<dt><span class="guilabel">Remote Command</span></dt>
<dd>provides a –remotecmd argument</dd>
</dl>
</div></blockquote>
<p>When the sync tool is opened within the Workbench, the toolbar has a
<span class="guilabel">Target</span> checkbox.  While checked, the target dropdown box is
sensitive and the selected target revision, bookmark, or branch will be
added to every synchronization command.  When the sync tool is opened
outside of the Workbench, the target checkbox and dropdown box is
hidden.  Clicking on a revision in the graph will update the values in
the dropdown box.  Holding <kbd class="kbd docutils literal notranslate">Alt</kbd> while clicking on a revision will
select the revision without switching away from the sync tool tab.</p>
<p>Below the toolbar is the currently selected URL.  All synchronization
commands will use this URL.  The general effect of the toolbar is that
it can be read as a Mercurial command line.  The tool buttons select the
command, the <span class="guilabel">Post Pull</span> and <span class="guilabel">Options</span> dialog
specify options, the target dropdown box can specify revisions, and
finally the URL completes the command.</p>
<div class="section" id="adding-an-url">
<h2>5.9.1. Adding an URL<a class="headerlink" href="#adding-an-url" title="Permalink to this headline">¶</a></h2>
<p>By far the easiest way to add a new URL to your respository is to drag
and drop the URL from another application, then press the save button
and provide the URL an alias.</p>
<p>The two list panes display URLs that are stored in the current
repository’s configuration file (<span class="guilabel">Stored Paths</span>) and URLs that are
stored in other related repositories that are listed in the Workbench
repository registry (<span class="guilabel">Related Paths</span>).  When the sync tool is opened
outside of the Workbench, the <span class="guilabel">Related Paths</span> list will be empty.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">Being related means two repositories share at least a common root
changeset.  Cloned are obviously related.  Push and pull operations
require that repositories to be related, or that you use –force to
override the relationship check.</p>
</div>
<p>The URL lists have a context menu that allows you to browse, open a
terminal, or delete an URL from your local configuration file.  The
platform standard delete key sequence will also remove an URL.</p>
</div>
<div class="section" id="security">
<h2>5.9.2. Security<a class="headerlink" href="#security" title="Permalink to this headline">¶</a></h2>
<p>Mercurial (and TortoiseHg) support two secure protocols for exchanging
data with remove servers.  HTTPS (SSL) and SSH.</p>
<div class="section" id="https">
<h3>5.9.2.1. HTTPS<a class="headerlink" href="#https" title="Permalink to this headline">¶</a></h3>
<p>There are two asymmetrical parts to a secure HTTPS connection.  The
first part of the secure connection is authenticating the identification
of the server.  The second is authenticating yourself (the client) to
the server, either via a username and passphrase or a certificate key.</p>
<div class="section" id="host-authentication">
<h4>5.9.2.1.1. Host Authentication<a class="headerlink" href="#host-authentication" title="Permalink to this headline">¶</a></h4>
<p>Prior to version 1.7, Mercurial ignored this half of HTTPS connection
security.  In version 1.7 it began warning that the server’s certificate
was not being verified.</p>
<p>Mercurial version 1.7.5 introduced the ability to validate an HTTPS
server’s certificate against a stored fingerprint.  TortoiseHg 2.0’s
synchronize tool has an HTTPS security dialog that allows you to select
between using a host fingerprint or using the CA certificates.</p>
<p>In theory, a host fingerprint is more secure than the CA certificates
if you do not necessarily trust all of the signing authorities listed in
the default store.  However you must be sure that the fingerprint you
store is the correct fingerprint for the server to which you believe you
are communicating.</p>
<p>TortoiseHg 2.0 also allows you to select an insecure connection for a
given host.  This disables validation of the host’s certificate but
still uses an encrypted data stream (which was essentially the behavior
of Mercurial pre-1.7 except for the warning messages).</p>
</div>
<div class="section" id="user-authentication">
<h4>5.9.2.1.2. User Authentication<a class="headerlink" href="#user-authentication" title="Permalink to this headline">¶</a></h4>
<p>There are several mechanisms available for authenticating yourself to an
HTTPS server.  The simplest is to allow Mercurial to prompt you for the
username and passphrase.  However this quickly grows old as the two
prompts are always made separately and each push operation can require
multiple connections to be established.</p>
<p>The next option is to encode the username in the URL so that Mercurial
only prompts for a passphrase.  This cuts the number of prompts in half,
but is still annoying.  If you do not wish to be prompted for the
passphrase, it must be stored somewhere.  Your choices, in increasing
security, are:</p>
<ol class="arabic simple">
<li>encode the clear-text passphrase in each HTTPS URL in your repository configuration files</li>
<li>store the clear-text passphrase in your user configuration file</li>
<li>use the mercurial_keyring extension to store the passphrase cryptographically</li>
</ol>
<p>Until recently, TortoiseHg only supported the first option in the
graphical interface even though the second and third options were
supported internally.  TortoiseHg 2.0, we only support the latter two
options in the graphical interface, and we do not allow the user
configure the first option anymore.  By default we strip the username
and password off of URLs when they are saved.</p>
<p>To migrate from the first option to the later options, select an HTTPS
URL in the sync tool, open the security dialog and enter a username and
passphrase for the host if none are configured, and save.  Next save the
URL itself and allow the save dialog to strip the user authentication
data from the URL.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">If the mercurial_keyring extension is enabled, the security dialog
will not allow you to enter a passphrase since you do not want to
store the passphrase in clear text in your configuration file if you
are going to later store it cryptographically.</p>
</div>
<p>Options 2 and 3 use the [auth] section of your user configuration file
to configure a single username and passphrase (or certificate key files)
to authenticate to a given HTTPS hostname.  The [auth] section supports
many more configurations than this, see the man page for details.</p>
<p>Once the mercurial_keyring extension has been enabled (and all
applications are restarted), you can remove the HTTPS passphrases from
all of your configuration files.  Mercurial will prompt for the
passphrase once, then store it cryptographically using the best back-end
it can find for your platform.</p>
<p>The mercurial_keyring extension requires the [auth] section to be
configured for the host to which you are connecting, to provide the
username.  If your URL has an encoded username or passphrase, the
[auth] section is ignored.</p>
</div>
</div>
<div class="section" id="ssh">
<h3>5.9.2.2. SSH<a class="headerlink" href="#ssh" title="Permalink to this headline">¶</a></h3>
<p>SSH is a symmetrical peer-to-peer secure tunnel.  SSH clients and
servers have their own key management systems, so Mercurial does not get
involved with password prompts when SSH is used.  This is problematic on
Windows and thus TortoiseHg bundles the TortoisePlink SSH client with its
Windows installers.  TortoisePlink is a port of the Plink SSH client
that uses dialog prompts for host-key authorizations and passphrase
prompts.  TortoisePlink (developed by the TortoiseSVN project) can use
the other SSH tools that are part of the Plink toolchain, including the
Pageant key agent.</p>
<p>It is a known issue that TortoisePlink does not use compression in many
scenarios, and thus is up to four times slower than openssh and other
clients.  TortoiseHg recommends the use of HTTPS for Windows clients.</p>
<p>See the <a class="reference internal" href="faq.html"><span class="doc">Frequently Asked Questions</span></a> for help if you have trouble connecting to ssh servers.</p>
</div>
</div>
<div class="section" id="email">
<h2>5.9.3. Email<a class="headerlink" href="#email" title="Permalink to this headline">¶</a></h2>
<div class="figure" id="id2">
<img alt="Email dialog" src="_images/email1.png" />
<p class="caption"><span class="caption-text">Email dialog</span></p>
</div>
<p>The email dialog can be launched from two TortoiseHg tools.</p>
<ol class="arabic simple">
<li>The Workbench, in which case the user intends to email a selection
of revisions.</li>
<li>The synchronize tool, in which case the user intends to email all
outgoing changes to the current target repository.</li>
</ol>
<p>The <span class="guilabel">Send</span> button is obvious, and the <span class="guilabel">Configure</span>
dialog predictably opens the TortoiseHg Settings dialog to the email tab
where you can configure your SMTP settings and set default
<span class="guilabel">To:</span> and <span class="guilabel">From:</span> addresses.</p>
<p><span class="guilabel">In-Reply-To:</span> is used to make your patches properly threaded
in mailing lists.</p>
<p>Please consult the Mercurial documentation for the differences between
plain patches, Hg patches, Git patches, and bundles.</p>
</div>
<div class="section" id="from-command-line">
<h2>5.9.4. From command line<a class="headerlink" href="#from-command-line" title="Permalink to this headline">¶</a></h2>
<p>The synchronize tool can be started from command line</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">thg</span> <span class="n">sync</span>

<span class="n">aliases</span><span class="p">:</span> <span class="n">synchronize</span>

<span class="n">Synchronize</span> <span class="k">with</span> <span class="n">other</span> <span class="n">repositories</span>

<span class="n">use</span> <span class="s2">&quot;thg -v help sync&quot;</span> <span class="n">to</span> <span class="n">show</span> <span class="k">global</span> <span class="n">options</span>
</pre></div>
</div>
<p>The syntax is simple, no options or parameters are needed, except the
global options.</p>
</div>
</div>


          </div>
          
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="index.html">
              <img class="logo" src="_static/thg_logo_92x50.png" alt="Logo"/>
            </a></p>
<h1 class="logo"><a href="index.html">TortoiseHg</a></h1>








<h3>Navigation</h3>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="preface.html">1. Preface</a></li>
<li class="toctree-l1"><a class="reference internal" href="intro.html">2. Introduction</a></li>
<li class="toctree-l1"><a class="reference internal" href="whatsnew.html">3. What’s New</a></li>
<li class="toctree-l1"><a class="reference internal" href="quick.html">4. A Quick Start Guide to TortoiseHg</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="daily.html">5. TortoiseHg in daily use</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="common.html">5.1. Common Features</a></li>
<li class="toctree-l2"><a class="reference internal" href="explorer.html">5.2. Windows Explorer Integration</a></li>
<li class="toctree-l2"><a class="reference internal" href="nautilus.html">5.3. GNOME desktop integration</a></li>
<li class="toctree-l2"><a class="reference internal" href="workbench.html">5.4. Workbench</a></li>
<li class="toctree-l2"><a class="reference internal" href="init.html">5.5. Create a new repository</a></li>
<li class="toctree-l2"><a class="reference internal" href="clone.html">5.6. Clone a repository</a></li>
<li class="toctree-l2"><a class="reference internal" href="commit.html">5.7. Commit</a></li>
<li class="toctree-l2"><a class="reference internal" href="shelve.html">5.8. Shelve</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">5.9. Synchronize</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#adding-an-url">5.9.1. Adding an URL</a></li>
<li class="toctree-l3"><a class="reference internal" href="#security">5.9.2. Security</a></li>
<li class="toctree-l3"><a class="reference internal" href="#email">5.9.3. Email</a></li>
<li class="toctree-l3"><a class="reference internal" href="#from-command-line">5.9.4. From command line</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="serve.html">5.10. Serve</a></li>
<li class="toctree-l2"><a class="reference internal" href="guess.html">5.11. Detect Renames</a></li>
<li class="toctree-l2"><a class="reference internal" href="ignore.html">5.12. Ignore Filter</a></li>
<li class="toctree-l2"><a class="reference internal" href="archive.html">5.13. Archiving</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="settings.html">6. Settings</a></li>
<li class="toctree-l1"><a class="reference internal" href="patches.html">7. Patches</a></li>
<li class="toctree-l1"><a class="reference internal" href="extensions.html">8. Extensions</a></li>
<li class="toctree-l1"><a class="reference internal" href="nonhg.html">9. Use with other VCS systems</a></li>
<li class="toctree-l1"><a class="reference internal" href="faq.html">10. Frequently Asked Questions</a></li>
<li class="toctree-l1"><a class="reference internal" href="debugging.html">11. Debugging</a></li>
</ul>

<div class="relations">
<h3>Related Topics</h3>
<ul>
  <li><a href="index.html">Documentation overview</a><ul>
  <li><a href="daily.html">5. TortoiseHg in daily use</a><ul>
      <li>Previous: <a href="shelve.html" title="previous chapter">5.8. Shelve</a></li>
      <li>Next: <a href="serve.html" title="next chapter">5.10. Serve</a></li>
  </ul></li>
  </ul></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    </div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>








        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="footer">
      &copy;2010-2019, Steve Borho and others.
      
      |
      Powered by <a href="http://sphinx-doc.org/">Sphinx 1.8.4</a>
      &amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a>
      
      |
      <a href="_sources/sync.txt"
          rel="nofollow">Page source</a>
    </div>

    

    
  </body>
</html>