Debian Codegraph @

doc/man/hg-branch.1

raw
1 .TH HG BRANCH "" "" ""
2 .SH NAME
3 hg branch \- set or show the current branch name
4 .\" Man page generated from reStructuredText.
5 .
6 .SH SYNOPSIS
7 .sp
8 .nf
9 .ft C
10 hg branch [\-fC] [NAME]
11 .ft P
12 .fi
13 .SH DESCRIPTION
14 .IP Note
15 .
16 Branch names are permanent and global. Use \%\fBhg bookmark\fP\: to create a
17 light\-weight bookmark instead. See \%\fBhg help glossary\fP\: for more
18 information about named branches and bookmarks.
19 .RE
20 .sp
21 With no argument, show the current branch name. With one argument,
22 set the working directory branch name (the branch will not exist
23 in the repository until the next commit). Standard practice
24 recommends that primary development take place on the \(aqdefault\(aq
25 branch.
26 .sp
27 Unless \-f/\-\-force is specified, branch will not let you set a
28 branch name that already exists.
29 .sp
30 Use \-C/\-\-clean to reset the working directory branch to that of
31 the parent of the working directory, negating a previous branch
32 change.
33 .sp
34 Use the command \%\fBhg update\fP\: to switch to an existing branch. Use
35 \%\fBhg commit \-\-close\-branch\fP\: to mark this branch head as closed.
36 When all heads of a branch are closed, the branch will be
37 considered closed.
38 .sp
39 Returns 0 on success.
40 .SH OPTIONS
41 .INDENT 0.0
42 .TP
43 .B \-f, \-\-force
44 .
45 set branch name even if it shadows an existing branch
46 .TP
47 .B \-C, \-\-clean
48 .
49 reset branch name to parent branch name
50 .TP
51 .BI \-r, \-\-rev \ <VALUE[+]>
52 .
53 change branches of the given revs (EXPERIMENTAL)
54 .UNINDENT
55 .sp
56 [+] marked option can be specified multiple times
57 .\" Generated by docutils manpage writer.
58 .\"
59 .