| 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>closehead</title> |
| 8 |
<link rel="stylesheet" href="../style.css" type="text/css" /> |
| 9 |
</head> |
| 10 |
<body> |
| 11 |
<div class="document" id="closehead"> |
| 12 |
<span id="ext-closehead"></span> |
| 13 |
<h1 class="title">closehead</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="#commands" id="toc-entry-1">Commands</a><ul> |
| 19 |
<li><a class="reference internal" href="#change-manipulation" id="toc-entry-2">Change manipulation</a></li> |
| 20 |
</ul> |
| 21 |
</li> |
| 22 |
</ul> |
| 23 |
</div> |
| 24 |
<p>close arbitrary heads without checking them out first</p> |
| 25 |
<div class="section" id="commands"> |
| 26 |
<h1><a class="toc-backref" href="#contents">Commands</a></h1> |
| 27 |
<div class="section" id="change-manipulation"> |
| 28 |
<h2><a class="toc-backref" href="#contents">Change manipulation</a></h2> |
| 29 |
<div class="section" id="close-head"> |
| 30 |
<h3>close-head</h3> |
| 31 |
<p>close the given head revisions:</p> |
| 32 |
<pre class="literal-block"> |
| 33 |
hg close-head [OPTION]... [REV]... |
| 34 |
</pre> |
| 35 |
<p>This is equivalent to checking out each revision in a clean tree and running |
| 36 |
<tt class="docutils literal">hg commit <span class="pre">--close-branch</span></tt>, except that it doesn't change the working |
| 37 |
directory.</p> |
| 38 |
<p>The commit message must be specified with -l or -m.</p> |
| 39 |
<p>Options:</p> |
| 40 |
<table class="docutils option-list" frame="void" rules="none"> |
| 41 |
<col class="option" /> |
| 42 |
<col class="description" /> |
| 43 |
<tbody valign="top"> |
| 44 |
<tr><td class="option-group" colspan="2"> |
| 45 |
<kbd><span class="option">-m</span>, <span class="option">--message <var><TEXT></var></span></kbd></td> |
| 46 |
</tr> |
| 47 |
<tr><td> </td><td>use text as commit message</td></tr> |
| 48 |
<tr><td class="option-group" colspan="2"> |
| 49 |
<kbd><span class="option">-l</span>, <span class="option">--logfile <var><FILE></var></span></kbd></td> |
| 50 |
</tr> |
| 51 |
<tr><td> </td><td>read commit message from file</td></tr> |
| 52 |
<tr><td class="option-group" colspan="2"> |
| 53 |
<kbd><span class="option">-d</span>, <span class="option">--date <var><DATE></var></span></kbd></td> |
| 54 |
</tr> |
| 55 |
<tr><td> </td><td>record the specified date as commit date</td></tr> |
| 56 |
<tr><td class="option-group" colspan="2"> |
| 57 |
<kbd><span class="option">-u</span>, <span class="option">--user <var><USER></var></span></kbd></td> |
| 58 |
</tr> |
| 59 |
<tr><td> </td><td>record the specified user as committer</td></tr> |
| 60 |
<tr><td class="option-group" colspan="2"> |
| 61 |
<kbd><span class="option">-r</span>, <span class="option">--rev <var><REV[+]></var></span></kbd></td> |
| 62 |
</tr> |
| 63 |
<tr><td> </td><td>revision to check</td></tr> |
| 64 |
</tbody> |
| 65 |
</table> |
| 66 |
<p>[+] marked option can be specified multiple times</p> |
| 67 |
<!-- --> |
| 68 |
<blockquote> |
| 69 |
aliases: close-heads</blockquote> |
| 70 |
</div> |
| 71 |
</div> |
| 72 |
</div> |
| 73 |
</div> |
| 74 |
</body> |
| 75 |
</html> |