| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 6 |
<meta name="generator" content="Docutils 0.21.2: https://docutils.sourceforge.io/" /> |
| 7 |
<title>record</title> |
| 8 |
<link rel="stylesheet" href="../style.css" type="text/css" /> |
| 9 |
</head> |
| 10 |
<body> |
| 11 |
<div class="document" id="record"> |
| 12 |
<span id="ext-record"></span> |
| 13 |
<h1 class="title">record</h1> |
| 14 |
|
| 15 |
<div class="contents htmlonly topic" id="contents"> |
| 16 |
<p class="topic-title"><a class="reference internal" href="#top">Contents</a></p> |
| 17 |
<ul class="simple"> |
| 18 |
<li><a class="reference internal" href="#description" id="toc-entry-1">Description</a></li> |
| 19 |
<li><a class="reference internal" href="#commands" id="toc-entry-2">Commands</a><ul> |
| 20 |
<li><a class="reference internal" href="#change-creation" id="toc-entry-3">Change creation</a></li> |
| 21 |
</ul> |
| 22 |
</li> |
| 23 |
</ul> |
| 24 |
</div> |
| 25 |
<p>commands to interactively select changes for commit/qrefresh (DEPRECATED)</p> |
| 26 |
<div class="section" id="description"> |
| 27 |
<h1><a class="toc-backref" href="#contents">Description</a></h1> |
| 28 |
<p>The feature provided by this extension has been moved into core Mercurial as |
| 29 |
<a class="reference external" href="hg-commit.html"><tt class="docutils literal">hg commit <span class="pre">--interactive</span></tt></a>.</p> |
| 30 |
</div> |
| 31 |
<div class="section" id="commands"> |
| 32 |
<h1><a class="toc-backref" href="#contents">Commands</a></h1> |
| 33 |
<div class="section" id="change-creation"> |
| 34 |
<h2><a class="toc-backref" href="#contents">Change creation</a></h2> |
| 35 |
<div class="section" id="qrecord"> |
| 36 |
<h3>qrecord</h3> |
| 37 |
<p>interactively record a new patch:</p> |
| 38 |
<pre class="literal-block"> |
| 39 |
hg qrecord [OPTION]... PATCH [FILE]... |
| 40 |
</pre> |
| 41 |
<p>See <a class="reference external" href="hg.1.html#qnew"><tt class="docutils literal">hg help qnew</tt></a> & <a class="reference external" href="ext-record.html"><tt class="docutils literal">hg help record</tt></a> for more information and |
| 42 |
usage.</p> |
| 43 |
</div> |
| 44 |
<div class="section" id="record-1"> |
| 45 |
<h3>record</h3> |
| 46 |
<p>interactively select changes to commit:</p> |
| 47 |
<pre class="literal-block"> |
| 48 |
hg record [OPTION]... [FILE]... |
| 49 |
</pre> |
| 50 |
<p>If a list of files is omitted, all changes reported by <a class="reference external" href="hg-status.html"><tt class="docutils literal">hg status</tt></a> |
| 51 |
will be candidates for recording.</p> |
| 52 |
<p>See <a class="reference external" href="topic-dates.html"><tt class="docutils literal">hg help dates</tt></a> for a list of formats valid for -d/--date.</p> |
| 53 |
<p>If using the text interface (see <a class="reference external" href="hgrc.5.html"><tt class="docutils literal">hg help config</tt></a>), |
| 54 |
you will be prompted for whether to record changes to each |
| 55 |
modified file, and for files with multiple changes, for each |
| 56 |
change to use. For each query, the following responses are |
| 57 |
possible:</p> |
| 58 |
<pre class="literal-block"> |
| 59 |
y - record this change |
| 60 |
n - skip this change |
| 61 |
e - edit this change manually |
| 62 |
|
| 63 |
s - skip remaining changes to this file |
| 64 |
f - record remaining changes to this file |
| 65 |
|
| 66 |
d - done, skip remaining changes and files |
| 67 |
a - record all changes to all remaining files |
| 68 |
q - quit, recording no changes |
| 69 |
|
| 70 |
? - display help |
| 71 |
</pre> |
| 72 |
<p>This command is not available when committing a merge.</p> |
| 73 |
<p>Options:</p> |
| 74 |
<table class="docutils option-list" frame="void" rules="none"> |
| 75 |
<col class="option" /> |
| 76 |
<col class="description" /> |
| 77 |
<tbody valign="top"> |
| 78 |
<tr><td class="option-group" colspan="2"> |
| 79 |
<kbd><span class="option">-A</span>, <span class="option">--addremove</span></kbd></td> |
| 80 |
</tr> |
| 81 |
<tr><td> </td><td>mark new/missing files as added/removed before committing</td></tr> |
| 82 |
<tr><td class="option-group"> |
| 83 |
<kbd><span class="option">--close-branch</span></kbd></td> |
| 84 |
<td>mark a branch head as closed</td></tr> |
| 85 |
<tr><td class="option-group"> |
| 86 |
<kbd><span class="option">--amend</span></kbd></td> |
| 87 |
<td>amend the parent of the working directory</td></tr> |
| 88 |
<tr><td class="option-group"> |
| 89 |
<kbd><span class="option">-s</span>, <span class="option">--secret</span></kbd></td> |
| 90 |
<td>use the secret phase for committing</td></tr> |
| 91 |
<tr><td class="option-group"> |
| 92 |
<kbd><span class="option">--draft</span></kbd></td> |
| 93 |
<td>use the draft phase for committing</td></tr> |
| 94 |
<tr><td class="option-group"> |
| 95 |
<kbd><span class="option">-e</span>, <span class="option">--edit</span></kbd></td> |
| 96 |
<td>invoke editor on commit messages</td></tr> |
| 97 |
<tr><td class="option-group" colspan="2"> |
| 98 |
<kbd><span class="option">--force-close-branch</span></kbd></td> |
| 99 |
</tr> |
| 100 |
<tr><td> </td><td>forcibly close branch from a non-head changeset (ADVANCED)</td></tr> |
| 101 |
<tr><td class="option-group" colspan="2"> |
| 102 |
<kbd><span class="option">-I</span>, <span class="option">--include <var><PATTERN[+]></var></span></kbd></td> |
| 103 |
</tr> |
| 104 |
<tr><td> </td><td>include names matching the given patterns</td></tr> |
| 105 |
<tr><td class="option-group" colspan="2"> |
| 106 |
<kbd><span class="option">-X</span>, <span class="option">--exclude <var><PATTERN[+]></var></span></kbd></td> |
| 107 |
</tr> |
| 108 |
<tr><td> </td><td>exclude names matching the given patterns</td></tr> |
| 109 |
<tr><td class="option-group" colspan="2"> |
| 110 |
<kbd><span class="option">-m</span>, <span class="option">--message <var><TEXT></var></span></kbd></td> |
| 111 |
</tr> |
| 112 |
<tr><td> </td><td>use text as commit message</td></tr> |
| 113 |
<tr><td class="option-group" colspan="2"> |
| 114 |
<kbd><span class="option">-l</span>, <span class="option">--logfile <var><FILE></var></span></kbd></td> |
| 115 |
</tr> |
| 116 |
<tr><td> </td><td>read commit message from file</td></tr> |
| 117 |
<tr><td class="option-group" colspan="2"> |
| 118 |
<kbd><span class="option">-d</span>, <span class="option">--date <var><DATE></var></span></kbd></td> |
| 119 |
</tr> |
| 120 |
<tr><td> </td><td>record the specified date as commit date</td></tr> |
| 121 |
<tr><td class="option-group" colspan="2"> |
| 122 |
<kbd><span class="option">-u</span>, <span class="option">--user <var><USER></var></span></kbd></td> |
| 123 |
</tr> |
| 124 |
<tr><td> </td><td>record the specified user as committer</td></tr> |
| 125 |
<tr><td class="option-group"> |
| 126 |
<kbd><span class="option">-S</span>, <span class="option">--subrepos</span></kbd></td> |
| 127 |
<td>recurse into subrepositories</td></tr> |
| 128 |
<tr><td class="option-group" colspan="2"> |
| 129 |
<kbd><span class="option">-w</span>, <span class="option">--ignore-all-space</span></kbd></td> |
| 130 |
</tr> |
| 131 |
<tr><td> </td><td>ignore white space when comparing lines</td></tr> |
| 132 |
<tr><td class="option-group" colspan="2"> |
| 133 |
<kbd><span class="option">-b</span>, <span class="option">--ignore-space-change</span></kbd></td> |
| 134 |
</tr> |
| 135 |
<tr><td> </td><td>ignore changes in the amount of white space</td></tr> |
| 136 |
<tr><td class="option-group" colspan="2"> |
| 137 |
<kbd><span class="option">-B</span>, <span class="option">--ignore-blank-lines</span></kbd></td> |
| 138 |
</tr> |
| 139 |
<tr><td> </td><td>ignore changes whose lines are all blank</td></tr> |
| 140 |
<tr><td class="option-group" colspan="2"> |
| 141 |
<kbd><span class="option">-Z</span>, <span class="option">--ignore-space-at-eol</span></kbd></td> |
| 142 |
</tr> |
| 143 |
<tr><td> </td><td>ignore changes in whitespace at EOL</td></tr> |
| 144 |
</tbody> |
| 145 |
</table> |
| 146 |
<p>[+] marked option can be specified multiple times</p> |
| 147 |
</div> |
| 148 |
</div> |
| 149 |
</div> |
| 150 |
</div> |
| 151 |
</body> |
| 152 |
</html> |