Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Mercurial can do this with the <a href="https://www.mercurial-scm.org/wiki/RecordExtension" rel="nofollow noreferrer">record</a> extension.</p> <p>It'll prompt you for each file and each diff hunk. For example:</p> <pre><code>% hg record diff --git a/prelim.tex b/prelim.tex 2 hunks, 4 lines changed examine changes to 'prelim.tex'? [Ynsfdaq?] @@ -12,7 +12,7 @@ \setmonofont[Scale=0.88]{Consolas} % missing from xunicode.sty \DeclareUTFcomposite[\UTFencname]{x00ED}{\'}{\i} -\else +\else foo \usepackage[pdftex]{graphicx} \fi record this change to 'prelim.tex'? [Ynsfdaq?] @@ -1281,3 +1281,5 @@ %% Local variables: %% mode: latex %% End: + +foo \ No newline at end of file record this change to 'prelim.tex'? [Ynsfdaq?] n Waiting for Emacs... </code></pre> <p>After the commit, the remaining diff will be left behind:</p> <pre><code>% hg di diff --git a/prelim.tex b/prelim.tex --- a/prelim.tex +++ b/prelim.tex @@ -1281,3 +1281,5 @@ %% Local variables: %% mode: latex %% End: + +foo \ No newline at end of file </code></pre> <p>Alternatively, you may find it easier to use MQ (Mercurial Queues) to separate the individual changes in your repository into patches. There is a MQ variant of record (qrecord), too.</p> <p><strong>Update:</strong> Also try the <a href="http://bitbucket.org/edgimar/crecord/wiki/Home" rel="nofollow noreferrer">crecord</a> extension, which provides a curses interface to hunk/line selection.</p> <p><img src="https://i.stack.imgur.com/wRcie.png" alt="crecord screenshot"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload