Source

cointoss1973.bitbucket.org / thg / manual / 2.4 / guess.html

Full commit


<!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="Content-Type" content="text/html; charset=utf-8" />
    
    <title>5.11. Detect Renames &mdash; TortoiseHg 2.4.0 documentation</title>
    
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '2.4.0',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </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>
    <link rel="top" title="TortoiseHg 2.4.0 documentation" href="index.html" />
    <link rel="up" title="5. TortoiseHg in daily use" href="daily.html" />
    <link rel="next" title="5.12. Ignore Filter" href="ignore.html" />
    <link rel="prev" title="5.10. Serve" href="serve.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="ignore.html" title="5.12. Ignore Filter"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="serve.html" title="5.10. Serve"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">TortoiseHg 2.4.0 documentation</a> &raquo;</li>
          <li><a href="daily.html" accesskey="U">5. TortoiseHg in daily use</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="module-guess.dialog">
<span id="detect-renames"></span><h1>5.11. Detect Renames<a class="headerlink" href="#module-guess.dialog" title="Permalink to this headline"></a></h1>
<div class="figure">
<img alt="Rename guessing dialog" src="_images/guess.png" />
<p class="caption">Rename Guessing Dialog</p>
</div>
<p>This dialog is used to find renames, moves, and/or copies that were done
without Mercurial&#8217;s knowledge.  The dialog can be launched from the
shell context menu, or from the status or commit tools via the context
menu of an unknown file.</p>
<p>Follow these steps:</p>
<ol class="arabic simple">
<li>select one or more of the <em class="guilabel">Unrevisioned Files</em></li>
<li>slide the <em class="guilabel">Min Similarity</em> bar to the percentage match you desire</li>
<li>uncheck <em class="guilabel">Only consider deleted files</em> to search for copies</li>
<li>press <em class="guilabel">Find Rename</em></li>
<li>preview <em class="guilabel">Candidate Matches</em> and accept good matches</li>
<li>repeat until all unrevisioned files are matched</li>
</ol>
<div class="section" id="candidate-matches">
<h2>5.11.1. Candidate Matches<a class="headerlink" href="#candidate-matches" title="Permalink to this headline"></a></h2>
<p>When you select a match in this list, the differences between the two
files are shown in the bottom pane.  Pressing <em class="guilabel">Accept Match</em>
will record the rename or copy event with Mercurial.</p>
</div>
<div class="section" id="from-command-line">
<h2>5.11.2. From command line<a class="headerlink" href="#from-command-line" title="Permalink to this headline"></a></h2>
<p>The guess tool can be started from command line:</p>
<div class="highlight-python"><pre>thg guess

guess previous renames or copies

use "thg -v help guess" to show global options</pre>
</div>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="index.html">
              <img class="logo" src="_static/thg_logo_92x50.png" alt="Logo"/>
            </a></p>
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">5.11. Detect Renames</a><ul>
<li><a class="reference internal" href="#candidate-matches">5.11.1. Candidate Matches</a></li>
<li><a class="reference internal" href="#from-command-line">5.11.2. From command line</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="serve.html"
                        title="previous chapter">5.10. Serve</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="ignore.html"
                        title="next chapter">5.12. Ignore Filter</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/guess.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <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>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="ignore.html" title="5.12. Ignore Filter"
             >next</a> |</li>
        <li class="right" >
          <a href="serve.html" title="5.10. Serve"
             >previous</a> |</li>
        <li><a href="index.html">TortoiseHg 2.4.0 documentation</a> &raquo;</li>
          <li><a href="daily.html" >5. TortoiseHg in daily use</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2012, Steve Borho and others.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
    </div>
  </body>
</html>