Debian Codegraph @

doc/html/hg-branches.html

raw
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 branches</title>
8 <link rel="stylesheet" href="../style.css" type="text/css" />
9 </head>
10 <body>
11 <div class="document" id="hg-branches">
12 <span id="hg-branches-1"></span>
13 <h1 class="title">hg branches</h1>
14 <h2 class="subtitle" id="list-repository-named-branches">list repository named branches</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 branches [-c]
28 </pre>
29 </div>
30 <div class="section" id="description">
31 <h1><a class="toc-backref" href="#contents">Description</a></h1>
32 <p>List the repository's named branches, indicating which ones are
33 inactive. If -c/--closed is specified, also list branches which have
34 been marked closed (see <a class="reference external" href="hg-commit.html"><tt class="docutils literal">hg commit <span class="pre">--close-branch</span></tt></a>).</p>
35 <p>Use the command <a class="reference external" href="hg-update.html"><tt class="docutils literal">hg update</tt></a> to switch to an existing branch.</p>
36 <div class="verbose docutils container">
37 <p>Template:</p>
38 <p>The following keywords are supported in addition to the common template
39 keywords and functions such as <tt class="docutils literal">{branch}</tt>. See also
40 <a class="reference external" href="hg.1.html#templates"><tt class="docutils literal">hg help templates</tt></a>.</p>
41 <table class="docutils field-list" frame="void" rules="none">
42 <col class="field-name" />
43 <col class="field-body" />
44 <tbody valign="top">
45 <tr class="field"><th class="field-name">active:</th><td class="field-body">Boolean. True if the branch is active.</td>
46 </tr>
47 <tr class="field"><th class="field-name">closed:</th><td class="field-body">Boolean. True if the branch is closed.</td>
48 </tr>
49 <tr class="field"><th class="field-name">current:</th><td class="field-body">Boolean. True if it is the current branch.</td>
50 </tr>
51 </tbody>
52 </table>
53 </div>
54 <p>Returns 0.</p>
55 </div>
56 <div class="section" id="options">
57 <h1><a class="toc-backref" href="#contents">Options</a></h1>
58 <table class="docutils option-list" frame="void" rules="none">
59 <col class="option" />
60 <col class="description" />
61 <tbody valign="top">
62 <tr><td class="option-group">
63 <kbd><span class="option">-a</span>, <span class="option">--active</span></kbd></td>
64 <td>show only branches that have unmerged heads (DEPRECATED)</td></tr>
65 <tr><td class="option-group">
66 <kbd><span class="option">-c</span>, <span class="option">--closed</span></kbd></td>
67 <td>show normal and closed branches</td></tr>
68 <tr><td class="option-group" colspan="2">
69 <kbd><span class="option">-r</span>, <span class="option">--rev <var>&lt;VALUE[+]&gt;</var></span></kbd></td>
70 </tr>
71 <tr><td>&nbsp;</td><td>show branch name(s) of the given rev</td></tr>
72 <tr><td class="option-group" colspan="2">
73 <kbd><span class="option">-T</span>, <span class="option">--template <var>&lt;TEMPLATE&gt;</var></span></kbd></td>
74 </tr>
75 <tr><td>&nbsp;</td><td>display with template</td></tr>
76 </tbody>
77 </table>
78 <p>[+] marked option can be specified multiple times</p>
79 </div>
80 </div>
81 </body>
82 </html>