| 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>hg heads</title> |
| 8 |
<link rel="stylesheet" href="../style.css" type="text/css" /> |
| 9 |
</head> |
| 10 |
<body> |
| 11 |
<div class="document" id="hg-heads"> |
| 12 |
<span id="hg-heads-1"></span> |
| 13 |
<h1 class="title">hg heads</h1> |
| 14 |
<h2 class="subtitle" id="show-branch-heads">show branch heads</h2> |
| 15 |
|
| 16 |
<div class="contents htmlonly topic" id="contents"> |
| 17 |
<p class="topic-title"><a class="reference internal" href="#top">Contents</a></p> |
| 18 |
<ul class="simple"> |
| 19 |
<li><a class="reference internal" href="#synopsis" id="toc-entry-1">Synopsis</a></li> |
| 20 |
<li><a class="reference internal" href="#description" id="toc-entry-2">Description</a></li> |
| 21 |
<li><a class="reference internal" href="#options" id="toc-entry-3">Options</a></li> |
| 22 |
</ul> |
| 23 |
</div> |
| 24 |
<div class="section" id="synopsis"> |
| 25 |
<h1><a class="toc-backref" href="#contents">Synopsis</a></h1> |
| 26 |
<pre class="literal-block"> |
| 27 |
hg heads [-ct] [-r STARTREV] [REV]... |
| 28 |
</pre> |
| 29 |
</div> |
| 30 |
<div class="section" id="description"> |
| 31 |
<h1><a class="toc-backref" href="#contents">Description</a></h1> |
| 32 |
<p>With no arguments, show all open branch heads in the repository. |
| 33 |
Branch heads are changesets that have no descendants on the |
| 34 |
same branch. They are where development generally takes place and |
| 35 |
are the usual targets for update and merge operations.</p> |
| 36 |
<p>If one or more REVs are given, only open branch heads on the |
| 37 |
branches associated with the specified changesets are shown. This |
| 38 |
means that you can use <a class="reference external" href="hg-heads.html"><tt class="docutils literal">hg heads .</tt></a> to see the heads on the |
| 39 |
currently checked-out branch.</p> |
| 40 |
<p>If -c/--closed is specified, also show branch heads marked closed |
| 41 |
(see <a class="reference external" href="hg-commit.html"><tt class="docutils literal">hg commit <span class="pre">--close-branch</span></tt></a>).</p> |
| 42 |
<p>If STARTREV is specified, only those heads that are descendants of |
| 43 |
STARTREV will be displayed.</p> |
| 44 |
<p>If -t/--topo is specified, named branch mechanics will be ignored and only |
| 45 |
topological heads (changesets with no children) will be shown.</p> |
| 46 |
<p>Returns 0 if matching heads are found, 1 if not.</p> |
| 47 |
</div> |
| 48 |
<div class="section" id="options"> |
| 49 |
<h1><a class="toc-backref" href="#contents">Options</a></h1> |
| 50 |
<table class="docutils option-list" frame="void" rules="none"> |
| 51 |
<col class="option" /> |
| 52 |
<col class="description" /> |
| 53 |
<tbody valign="top"> |
| 54 |
<tr><td class="option-group" colspan="2"> |
| 55 |
<kbd><span class="option">-r</span>, <span class="option">--rev <var><STARTREV></var></span></kbd></td> |
| 56 |
</tr> |
| 57 |
<tr><td> </td><td>show only heads which are descendants of STARTREV</td></tr> |
| 58 |
<tr><td class="option-group"> |
| 59 |
<kbd><span class="option">-t</span>, <span class="option">--topo</span></kbd></td> |
| 60 |
<td>show topological heads only</td></tr> |
| 61 |
<tr><td class="option-group"> |
| 62 |
<kbd><span class="option">-a</span>, <span class="option">--active</span></kbd></td> |
| 63 |
<td>show active branchheads only (DEPRECATED)</td></tr> |
| 64 |
<tr><td class="option-group"> |
| 65 |
<kbd><span class="option">-c</span>, <span class="option">--closed</span></kbd></td> |
| 66 |
<td>show normal and closed branch heads</td></tr> |
| 67 |
<tr><td class="option-group" colspan="2"> |
| 68 |
<kbd><span class="option">--style <var><STYLE></var></span></kbd></td> |
| 69 |
</tr> |
| 70 |
<tr><td> </td><td>display using template map file (DEPRECATED)</td></tr> |
| 71 |
<tr><td class="option-group" colspan="2"> |
| 72 |
<kbd><span class="option">-T</span>, <span class="option">--template <var><TEMPLATE></var></span></kbd></td> |
| 73 |
</tr> |
| 74 |
<tr><td> </td><td>display with template</td></tr> |
| 75 |
</tbody> |
| 76 |
</table> |
| 77 |
</div> |
| 78 |
</div> |
| 79 |
</body> |
| 80 |
</html> |