~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/merge.py

  • Committer: Martin Pool
  • Date: 2005-08-25 00:47:04 UTC
  • Revision ID: mbp@sourcefrog.net-20050825004704-e3c75123f29539bf
- expose 'find-merge-base' as a new expert command,
  to help in debugging merges

  move UnrelatedBranches exception into bzrlib.errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
from bzrlib.changeset import Inventory, Diff3Merge
4
4
from bzrlib import find_branch
5
5
import bzrlib.osutils
6
 
from bzrlib.errors import BzrCommandError
 
6
from bzrlib.errors import BzrCommandError, UnrelatedBranches
7
7
from bzrlib.delta import compare_trees
8
8
from trace import mutter, warning
9
9
import os.path
18
18
# stage 1: generate OLD->OTHER,
19
19
# stage 2: use MINE and OLD->OTHER to generate MINE -> RESULT
20
20
 
21
 
class UnrelatedBranches(BzrCommandError):
22
 
    def __init__(self):
23
 
        msg = "Branches have no common ancestor, and no base revision"\
24
 
            " specified."
25
 
        BzrCommandError.__init__(self, msg)
26
 
 
27
 
 
28
21
class MergeConflictHandler(ExceptionConflictHandler):
29
22
    """Handle conflicts encountered while merging.
30
23