~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/changeset.py

  • Committer: Robert Collins
  • Date: 2005-08-24 07:40:52 UTC
  • mto: (974.1.50) (1185.1.10) (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1139.
  • Revision ID: robertc@robertcollins.net-20050824074052-2e9ec0dd13958d20
make tests stop at the first failure, preventing multi-page omgs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1003
1003
    descend from this class if they have a better way to handle some or
1004
1004
    all types of conflict.
1005
1005
    """
 
1006
    def __init__(self, dir):
 
1007
        self.dir = dir
 
1008
    
1006
1009
    def missing_parent(self, pathname):
1007
1010
        parent = os.path.dirname(pathname)
1008
1011
        raise Exception("Parent directory missing for %s" % pathname)
1062
1065
    def new_contents_conflict(self, filename, other_contents):
1063
1066
        raise NewContentsConflict(filename)
1064
1067
 
1065
 
    def finalize(self):
 
1068
    def finalize():
1066
1069
        pass
1067
1070
 
1068
1071
def apply_changeset(changeset, inventory, dir, conflict_handler=None, 
1081
1084
    :rtype: Dictionary
1082
1085
    """
1083
1086
    if conflict_handler is None:
1084
 
        conflict_handler = ExceptionConflictHandler()
 
1087
        conflict_handler = ExceptionConflictHandler(dir)
1085
1088
    temp_dir = os.path.join(dir, "bzr-tree-change")
1086
1089
    try:
1087
1090
        os.mkdir(temp_dir)