| 1 |
.TH HG MERGE "" "" "" |
| 2 |
.SH NAME |
| 3 |
hg merge \- merge another revision into working directory |
| 4 |
.\" Man page generated from reStructuredText. |
| 5 |
. |
| 6 |
.SH SYNOPSIS |
| 7 |
.sp |
| 8 |
.nf |
| 9 |
.ft C |
| 10 |
hg merge [\-P] [[\-r] REV] |
| 11 |
.ft P |
| 12 |
.fi |
| 13 |
.SH DESCRIPTION |
| 14 |
.sp |
| 15 |
The current working directory is updated with all changes made in |
| 16 |
the requested revision since the last common predecessor revision. |
| 17 |
.sp |
| 18 |
Files that changed between either parent are marked as changed for |
| 19 |
the next commit and a commit must be performed before any further |
| 20 |
updates to the repository are allowed. The next commit will have |
| 21 |
two parents. |
| 22 |
.sp |
| 23 |
\fB\-\-tool\fP can be used to specify the merge tool used for file |
| 24 |
merges. It overrides the HGMERGE environment variable and your |
| 25 |
configuration files. See \%\fBhg help merge\-tools\fP\: for options. |
| 26 |
.sp |
| 27 |
If no revision is specified, the working directory\(aqs parent is a |
| 28 |
head revision, and the current branch contains exactly one other |
| 29 |
head, the other head is merged with by default. Otherwise, an |
| 30 |
explicit revision with which to merge must be provided. |
| 31 |
.sp |
| 32 |
See \%\fBhg help resolve\fP\: for information on handling file conflicts. |
| 33 |
.sp |
| 34 |
To undo an uncommitted merge, use \%\fBhg merge \-\-abort\fP\: which |
| 35 |
will check out a clean copy of the original merge parent, losing |
| 36 |
all changes. |
| 37 |
.sp |
| 38 |
Returns 0 on success, 1 if there are unresolved files. |
| 39 |
.SH OPTIONS |
| 40 |
.INDENT 0.0 |
| 41 |
.TP |
| 42 |
.B \-f, \-\-force |
| 43 |
. |
| 44 |
force a merge including outstanding changes (DEPRECATED) |
| 45 |
.TP |
| 46 |
.BI \-r, \-\-rev \ <REV> |
| 47 |
. |
| 48 |
revision to merge |
| 49 |
.TP |
| 50 |
.B \-P, \-\-preview |
| 51 |
. |
| 52 |
review revisions to merge (no merge is performed) |
| 53 |
.TP |
| 54 |
.B \-\-abort |
| 55 |
. |
| 56 |
abort the ongoing merge |
| 57 |
.TP |
| 58 |
.BI \-t, \-\-tool \ <TOOL> |
| 59 |
. |
| 60 |
specify merge tool |
| 61 |
.UNINDENT |
| 62 |
.\" Generated by docutils manpage writer. |
| 63 |
.\" |
| 64 |
. |