Sophie

Sophie

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

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.6. Clone a repository &#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.7. Commit" href="commit.html" />
    <link rel="prev" title="5.5. Create a new repository" href="init.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-clone.dialog">
<span id="clone-a-repository"></span><h1>5.6. Clone a repository<a class="headerlink" href="#module-clone.dialog" title="Permalink to this headline">¶</a></h1>
<p>To clone a repository you have to run the clone dialog.
From the explorer context menu select <span class="menuselection">TortoiseHg… ‣ Clone a repository</span>
or type <strong class="command">thg clone</strong>.</p>
<div class="figure" id="id1">
<img alt="Clone dialog" src="_images/clone.png" />
<p class="caption"><span class="caption-text">Clone Dialog</span></p>
</div>
<dl class="docutils">
<dt><span class="guilabel">Source</span></dt>
<dd>It is the path (or URL) of the repository that will be cloned. Use
the <span class="guilabel">Browse…</span> to choose a local folder.</dd>
<dt><span class="guilabel">Destination</span></dt>
<dd>It is the path of destination directory, a folder with the same name
of source repository will be created within this directory.</dd>
</dl>
<p>Under the <span class="guilabel">Options</span> expander you will find:</p>
<dl class="docutils">
<dt><span class="guilabel">Clone To Revision</span></dt>
<dd>You can limit the clone up to this revision. Even the tags created
after this revision will not be imported.</dd>
<dt><span class="guilabel">Do not update the new working directory</span></dt>
<dd>If checked, after the clone the working directory will be empty. It
is useful when you have to clone a repository with the purpose of
central repository, or backup, where you have only, in the future,
to <em>push</em> and <em>pull</em>.</dd>
<dt><span class="guilabel">Use pull protocol to copy metadata</span></dt>
<dd>When the source and destination are on the same filesystem,
Mercurial tries to use hardlinks. Some filesystems, such as AFS
implement hardlink incorrectly, but do not report errors. Use this
option to avoid hardlinks.</dd>
<dt><span class="guilabel">Use uncompressed transfer</span></dt>
<dd>To use uncompressed transfer (fast over LAN).</dd>
<dt><span class="guilabel">Include patch queue</span></dt>
<dd>To also clone an MQ patch repository along with the main repository.
It is possible to provide a patch queue name that differs from the
default one.</dd>
<dt><span class="guilabel">Use proxy server</span></dt>
<dd>To use the proxy server configured in <span class="menuselection">TortoiseHg… ‣ Global Settings ‣ Proxy</span>.
This is enabled only if a proxy is configured.</dd>
<dt><span class="guilabel">Do not verify host certificate</span></dt>
<dd>Skip checking server certificate for <a class="reference external" href="https://">https://</a> url (ignoring web.cacerts config).</dd>
<dt><span class="guilabel">Remote command</span></dt>
<dd>Specify a Mercurial command to run on the remote side.</dd>
<dt><span class="guilabel">Hg command</span></dt>
<dd>This field displays the command that will be executed by the dialog.</dd>
</dl>
<div class="section" id="from-command-line">
<h2>5.6.1. From command line<a class="headerlink" href="#from-command-line" title="Permalink to this headline">¶</a></h2>
<p>The clone 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">clone</span>
</pre></div>
</div>
<p>The syntax is</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">thg</span> <span class="n">clone</span> <span class="p">[</span><span class="n">SOURCE</span><span class="p">]</span> <span class="p">[</span><span class="n">DEST</span><span class="p">]</span>
</pre></div>
</div>
<p>where [SOURCE] and [DEST] are, the paths of source repository and destination folder.</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 current"><a class="current reference internal" href="#">5.6. Clone a repository</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#from-command-line">5.6.1. From command line</a></li>
</ul>
</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"><a class="reference internal" href="sync.html">5.9. Synchronize</a></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="init.html" title="previous chapter">5.5. Create a new repository</a></li>
      <li>Next: <a href="commit.html" title="next chapter">5.7. Commit</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/clone.txt"
          rel="nofollow">Page source</a>
    </div>

    

    
  </body>
</html>