517
517
if new_transport.base == transport.base:
518
518
raise BzrCommandError("Could not create "
520
dir_to = br_from.bzrdir.clone(location)
520
dir_to = br_from.bzrdir.clone(location,
521
revision_id=br_from.last_revision())
521
522
br_to = dir_to.open_branch()
522
523
count = len(br_to.revision_history())
1949
1950
merge refuses to run if there are any uncommitted changes, unless
1950
1951
--force is given.
1953
The following merge types are available:
1952
1955
takes_args = ['branch?']
1953
1956
takes_options = ['revision', 'force', 'merge-type', 'reprocess', 'remember',
1954
1957
Option('show-base', help="Show base revision text in "
1961
from merge import merge_type_help
1962
from inspect import getdoc
1963
return getdoc(self) + '\n' + merge_type_help()
1957
1965
def run(self, branch=None, revision=None, force=False, merge_type=None,
1958
1966
show_base=False, reprocess=False, remember=False):
1959
1967
if merge_type is None:
2021
2029
class cmd_remerge(Command):
2022
2030
"""Redo a merge.
2032
Use this if you want to try a different merge technique while resolving
2033
conflicts. Some merge techniques are better than others, and remerge
2034
lets you try different ones on different files.
2036
The options for remerge have the same meaning and defaults as the ones for
2037
merge. The difference is that remerge can (only) be run when there is a
2038
pending merge, and it lets you specify particular files.
2041
$ bzr remerge --show-base
2042
Re-do the merge of all conflicted files, and show the base text in
2043
conflict regions, in addition to the usual THIS and OTHER texts.
2045
$ bzr remerge --merge-type weave --reprocess foobar
2046
Re-do the merge of "foobar", using the weave merge algorithm, with
2047
additional processing to reduce the size of conflict regions.
2049
The following merge types are available:"""
2024
2050
takes_args = ['file*']
2025
2051
takes_options = ['merge-type', 'reprocess',
2026
2052
Option('show-base', help="Show base revision text in "
2056
from merge import merge_type_help
2057
from inspect import getdoc
2058
return getdoc(self) + '\n' + merge_type_help()
2029
2060
def run(self, file_list=None, merge_type=None, show_base=False,
2030
2061
reprocess=False):
2031
2062
from bzrlib.merge import merge_inner, transform_tree