Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 7e647d9940d31b34c253e6f71c416c4b > files > 2927

bzr-2.7.0-6.mga7.aarch64.rpm

merge
=====

:Purpose: Perform a three-way merge.
:Usage:   bzr merge [LOCATION]

:Options:
  --pull                If the destination is already completely merged into
                        the source, pull from the source rather than merging.
                        When this happens, you do not need to commit the
                        result.
  --remember            Remember the specified location as a default.
  -i, --interactive     Select changes interactively.
  --force               Merge even if the destination tree has uncommitted
                        changes.
  -v, --verbose         Display more information.
  --reprocess           Reprocess to reduce spurious conflicts.
  -h, --help            Show help message.
  -q, --quiet           Only display errors and warnings.
  -d ARG, --directory=ARG
                        Branch to merge into, rather than the one containing
                        the working directory.
  --uncommitted         Apply uncommitted changes from a working copy, instead
                        of branch changes.
  --usage               Show usage message and options.
  --show-base           Show base revision text in conflicts.
  --preview             Instead of merging, show a diff of the merge.
  -c ARG, --change=ARG  Select changes introduced by the specified revision.
                        See also "help revisionspec".
  -r ARG, --revision=ARG
                        See "help revisionspec" for details.

  Merge algorithm:
    --merge-type=ARG    Select a particular merge algorithm.
    --diff3             Merge using external diff3.
    --lca               LCA-newness merge.
    --merge3            Native diff3-style merge.
    --weave             Weave-based merge.

:Description:
  The source of the merge can be specified either in the form of a branch,
  or in the form of a path to a file containing a merge directive generated
  with bzr send. If neither is specified, the default is the upstream branch
  or the branch most recently merged using --remember.  The source of the
  merge may also be specified in the form of a path to a file in another
  branch:  in this case, only the modifications to that file are merged into
  the current working tree.
  
  When merging from a branch, by default bzr will try to merge in all new
  work from the other branch, automatically determining an appropriate base
  revision.  If this fails, you may need to give an explicit base.
  
  To pick a different ending revision, pass "--revision OTHER".  bzr will
  try to merge in all new work up to and including revision OTHER.
  
  If you specify two values, "--revision BASE..OTHER", only revisions BASE
  through OTHER, excluding BASE but including OTHER, will be merged.  If this
  causes some revisions to be skipped, i.e. if the destination branch does
  not already contain revision BASE, such a merge is commonly referred to as
  a "cherrypick". Unlike a normal merge, Bazaar does not currently track
  cherrypicks. The changes look like a normal commit, and the history of the
  changes from the other branch is not stored in the commit.
  
  Revision numbers are always relative to the source branch.
  
  Merge will do its best to combine the changes in two branches, but there
  are some kinds of problems only a human can fix.  When it encounters those,
  it will mark a conflict.  A conflict means that you need to fix something,
  before you can commit.
  
  Use bzr resolve when you have fixed a problem.  See also bzr conflicts.
  
  If there is no default branch set, the first merge will set it (use
  --no-remember to avoid setting it). After that, you can omit the branch
  to use the default.  To change the default, use --remember. The value will
  only be saved if the remote location can be accessed.
  
  The results of the merge are placed into the destination working
  directory, where they can be reviewed (with bzr diff), tested, and then
  committed to record the result of the merge.
  
  merge refuses to run if there are any uncommitted changes, unless
  --force is given.  If --force is given, then the changes from the source 
  will be merged with the current working tree, including any uncommitted
  changes in the tree.  The --force option can also be used to create a
  merge revision which has more than two parents.
  
  If one would like to merge changes from the working tree of the other
  branch without merging any committed revisions, the --uncommitted option
  can be given.
  
  To select only some changes to merge, use "merge -i", which will prompt
  you to apply each diff hunk and file change, similar to "shelve".

:Examples:
    To merge all new revisions from bzr.dev::

        bzr merge ../bzr.dev

    To merge changes up to and including revision 82 from bzr.dev::

        bzr merge -r 82 ../bzr.dev

    To merge the changes introduced by 82, without previous changes::

        bzr merge -r 81..82 ../bzr.dev

    To apply a merge directive contained in /tmp/merge::

        bzr merge /tmp/merge

    To create a merge revision with three parents from two branches
    feature1a and feature1b:

        bzr merge ../feature1a
        bzr merge ../feature1b --force
        bzr commit -m 'revision with three parents'

:See also: :doc:`remerge <remerge-help>`, :doc:`send <send-help>`, :doc:`status-flags <status-flags-help>`, :doc:`update <update-help>`