Debian Codegraph @

doc/man/hg-resolve.1

raw
1 .TH HG RESOLVE "" "" ""
2 .SH NAME
3 hg resolve \- redo merges or set/view the merge status of files
4 .\" Man page generated from reStructuredText.
5 .
6 .SH SYNOPSIS
7 .sp
8 .nf
9 .ft C
10 hg resolve [OPTION]... [FILE]...
11 .ft P
12 .fi
13 .SH DESCRIPTION
14 .sp
15 Merges with unresolved conflicts are often the result of
16 non\-interactive merging using the \fBinternal:merge\fP configuration
17 setting, or a command\-line merge tool like \fBdiff3\fP. The resolve
18 command is used to manage the files involved in a merge, after
19 \%\fBhg merge\fP\: has been run, and before \%\fBhg commit\fP\: is run (i.e. the
20 working directory must have two parents). See \%\fBhg help
21 merge\-tools\fP\: for information on configuring merge tools.
22 .sp
23 The resolve command can be used in the following ways:
24 .INDENT 0.0
25 .IP \(bu 2
26 .
27 \%\fBhg resolve [\-\-re\-merge] [\-\-tool TOOL] FILE...\fP\:: attempt to re\-merge
28 the specified files, discarding any previous merge attempts. Re\-merging
29 is not performed for files already marked as resolved. Use \fB\-\-all/\-a\fP
30 to select all unresolved files. \fB\-\-tool\fP can be used to specify
31 the merge tool used for the given files. It overrides the HGMERGE
32 environment variable and your configuration files. Previous file
33 contents are saved with a \fB.orig\fP suffix.
34 .IP \(bu 2
35 .
36 \%\fBhg resolve \-m [FILE]\fP\:: mark a file as having been resolved
37 (e.g. after having manually fixed\-up the files). The default is
38 to mark all unresolved files.
39 .IP \(bu 2
40 .
41 \%\fBhg resolve \-u [FILE]...\fP\:: mark a file as unresolved. The
42 default is to mark all resolved files.
43 .IP \(bu 2
44 .
45 \%\fBhg resolve \-l\fP\:: list files which had or still have conflicts.
46 In the printed list, \fBU\fP = unresolved and \fBR\fP = resolved.
47 You can use \fBset:unresolved()\fP or \fBset:resolved()\fP to filter
48 the list. See \%\fBhg help filesets\fP\: for details.
49 .UNINDENT
50 .IP Note
51 .
52 Mercurial will not let you commit files with unresolved merge
53 conflicts. You must use \%\fBhg resolve \-m ...\fP\: before you can
54 commit after a conflicting merge.
55 .RE
56 .sp
57 Template:
58 .sp
59 The following keywords are supported in addition to the common template
60 keywords and functions. See also \%\fBhg help templates\fP\:.
61 .INDENT 0.0
62 .TP
63 .B mergestatus
64 .
65 String. Character denoting merge conflicts, \fBU\fP or \fBR\fP.
66 .TP
67 .B path
68 .
69 String. Repository\-absolute path of the file.
70 .UNINDENT
71 .sp
72 Returns 0 on success, 1 if any files fail a resolve attempt.
73 .SH OPTIONS
74 .INDENT 0.0
75 .TP
76 .B \-a, \-\-all
77 .
78 select all unresolved files
79 .TP
80 .B \-l, \-\-list
81 .
82 list state of files needing merge
83 .TP
84 .B \-m, \-\-mark
85 .
86 mark files as resolved
87 .TP
88 .B \-u, \-\-unmark
89 .
90 mark files as unresolved
91 .TP
92 .B \-n, \-\-no\-status
93 .
94 hide status prefix
95 .TP
96 .B \-\-re\-merge
97 .
98 re\-merge files
99 .TP
100 .BI \-t, \-\-tool \ <TOOL>
101 .
102 specify merge tool
103 .TP
104 .BI \-I, \-\-include \ <PATTERN[+]>
105 .
106 include names matching the given patterns
107 .TP
108 .BI \-X, \-\-exclude \ <PATTERN[+]>
109 .
110 exclude names matching the given patterns
111 .TP
112 .BI \-T, \-\-template \ <TEMPLATE>
113 .
114 display with template
115 .UNINDENT
116 .sp
117 [+] marked option can be specified multiple times
118 .\" Generated by docutils manpage writer.
119 .\"
120 .