Debian Codegraph @

doc/man/hg-backout.1

raw
1 .TH HG BACKOUT "" "" ""
2 .SH NAME
3 hg backout \- reverse effect of earlier changeset
4 .\" Man page generated from reStructuredText.
5 .
6 .SH SYNOPSIS
7 .sp
8 .nf
9 .ft C
10 hg backout [OPTION]... [\-r] REV
11 .ft P
12 .fi
13 .SH DESCRIPTION
14 .sp
15 Prepare a new changeset with the effect of REV undone in the
16 current working directory. If no conflicts were encountered,
17 it will be committed immediately.
18 .sp
19 If REV is the parent of the working directory, then this new changeset
20 is committed automatically (unless \-\-no\-commit is specified).
21 .IP Note
22 .
23 \%\fBhg backout\fP\: cannot be used to fix either an unwanted or
24 incorrect merge.
25 .RE
26 .sp
27 Examples:
28 .INDENT 0.0
29 .IP \(bu 2
30 .
31 Reverse the effect of the parent of the working directory.
32 This backout will be committed immediately:
33 .sp
34 .nf
35 .ft C
36 hg backout \-r .
37 .ft P
38 .fi
39 .IP \(bu 2
40 .
41 Reverse the effect of previous bad revision 23:
42 .sp
43 .nf
44 .ft C
45 hg backout \-r 23
46 .ft P
47 .fi
48 .IP \(bu 2
49 .
50 Reverse the effect of previous bad revision 23 and
51 leave changes uncommitted:
52 .sp
53 .nf
54 .ft C
55 hg backout \-r 23 \-\-no\-commit
56 hg commit \-m "Backout revision 23"
57 .ft P
58 .fi
59 .UNINDENT
60 .sp
61 By default, the pending changeset will have one parent,
62 maintaining a linear history. With \-\-merge, the pending
63 changeset will instead have two parents: the old parent of the
64 working directory and a new child of REV that simply undoes REV.
65 .sp
66 Before version 1.7, the behavior without \-\-merge was equivalent
67 to specifying \-\-merge followed by \%\fBhg update \-\-clean .\fP\: to
68 cancel the merge and leave the child of REV as a head to be
69 merged separately.
70 .sp
71 See \%\fBhg help dates\fP\: for a list of formats valid for \-d/\-\-date.
72 .sp
73 See \%\fBhg help revert\fP\: for a way to restore files to the state
74 of another revision.
75 .sp
76 Returns 0 on success, 1 if nothing to backout or there are unresolved
77 files.
78 .SH OPTIONS
79 .INDENT 0.0
80 .TP
81 .B \-\-merge
82 .
83 merge with old dirstate parent after backout
84 .TP
85 .B \-\-commit
86 .
87 commit if no conflicts were encountered (DEPRECATED)
88 .TP
89 .B \-\-no\-commit
90 .
91 do not commit
92 .TP
93 .BI \-\-parent \ <REV>
94 .
95 parent to choose when backing out merge (DEPRECATED)
96 .TP
97 .BI \-r, \-\-rev \ <REV>
98 .
99 revision to backout
100 .TP
101 .B \-e, \-\-edit
102 .
103 invoke editor on commit messages
104 .TP
105 .BI \-t, \-\-tool \ <TOOL>
106 .
107 specify merge tool
108 .TP
109 .BI \-I, \-\-include \ <PATTERN[+]>
110 .
111 include names matching the given patterns
112 .TP
113 .BI \-X, \-\-exclude \ <PATTERN[+]>
114 .
115 exclude names matching the given patterns
116 .TP
117 .BI \-m, \-\-message \ <TEXT>
118 .
119 use text as commit message
120 .TP
121 .BI \-l, \-\-logfile \ <FILE>
122 .
123 read commit message from file
124 .TP
125 .BI \-d, \-\-date \ <DATE>
126 .
127 record the specified date as commit date
128 .TP
129 .BI \-u, \-\-user \ <USER>
130 .
131 record the specified user as committer
132 .UNINDENT
133 .sp
134 [+] marked option can be specified multiple times
135 .\" Generated by docutils manpage writer.
136 .\"
137 .