3749
3749
with bzr send. If neither is specified, the default is the upstream branch
3750
3750
or the branch most recently merged using --remember.
3752
When merging a branch, by default the tip will be merged. To pick a different
3753
revision, pass --revision. If you specify two values, the first will be used as
3754
BASE and the second one as OTHER. Merging individual revisions, or a subset of
3755
available revisions, like this is commonly referred to as "cherrypicking".
3757
Revision numbers are always relative to the branch being merged.
3759
By default, bzr will try to merge in all new work from the other
3760
branch, automatically determining an appropriate base. If this
3761
fails, you may need to give an explicit base.
3752
When merging from a branch, by default bzr will try to merge in all new
3753
work from the other branch, automatically determining an appropriate base
3754
revision. If this fails, you may need to give an explicit base.
3756
To pick a different ending revision, pass "--revision OTHER". bzr will
3757
try to merge in all new work up to and including revision OTHER.
3759
If you specify two values, "--revision BASE..OTHER", only revisions BASE
3760
through OTHER, excluding BASE but including OTHER, will be merged. If this
3761
causes some revisions to be skipped, i.e. if the destination branch does
3762
not already contain revision BASE, such a merge is commonly referred to as
3765
Revision numbers are always relative to the source branch.
3763
3767
Merge will do its best to combine the changes in two branches, but there
3764
3768
are some kinds of problems only a human can fix. When it encounters those,
4204
4208
last committed revision is used.
4206
4210
To remove only some changes, without reverting to a prior version, use
4207
merge instead. For example, "merge . --revision -2..-3" will remove the
4208
changes introduced by -2, without affecting the changes introduced by -1.
4209
Or to remove certain changes on a hunk-by-hunk basis, see the Shelf plugin.
4211
merge instead. For example, "merge . -r -2..-3" (don't forget the ".")
4212
will remove the changes introduced by the second last commit (-2), without
4213
affecting the changes introduced by the last commit (-1). To remove
4214
certain changes on a hunk-by-hunk basis, see the shelve command.
4211
4216
By default, any files that have been manually changed will be backed up
4212
4217
first. (Files changed only by merge are not backed up.) Backup files have
4242
4247
target branches.
4245
_see_also = ['cat', 'export']
4250
_see_also = ['cat', 'export', 'merge', 'shelve']
4246
4251
takes_options = [
4248
4253
Option('no-backup', "Do not save backups of reverted files."),