logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

hg merge - merge another revision into working directory

Description

       The  current  working directory is updated with all changes made in the requested revision since the last
       common predecessor revision.

       Files that changed between either parent are marked as changed for the next commit and a commit  must  be
       performed  before  any  further  updates  to  the  repository  are allowed. The next commit will have two
       parents.

       --tool can be used to specify the merge tool used for file merges. It overrides the  HGMERGE  environment
       variable and your configuration files. See hghelpmerge-tools for options.

       If  no  revision  is specified, the working directory's parent is a head revision, and the current branch
       contains exactly one other head, the other head  is  merged  with  by  default.  Otherwise,  an  explicit
       revision with which to merge must be provided.

       See hghelpresolve for information on handling file conflicts.

       To  undo  an  uncommitted  merge,  use hgmerge--abort which will check out a clean copy of the original
       merge parent, losing all changes.

       Returns 0 on success, 1 if there are unresolved files.

Name

       hg merge - merge another revision into working directory

Options

-f,--force
              force a merge including outstanding changes (DEPRECATED)

       -r,--rev<REV>
              revision to merge

       -P,--preview
              review revisions to merge (no merge is performed)

       --abort
              abort the ongoing merge

       -t,--tool<TOOL>
              specify merge tool

                                                                                                       HG(MERGE)

Synopsis

       hg merge [-P] [[-r] REV]

See Also