~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/conflicts.py

Don't crash when --take-other (or --take-this) is called for a text conflict

Show diffs side-by-side

added added

removed removed

Lines of Context:
600
600
        self._resolve_with_cleanups(tree, 'THIS')
601
601
 
602
602
 
603
 
# FIXME: TextConflict is about a single file-id, there never is a conflict_path
604
 
# attribute so we shouldn't inherit from PathConflict but simply from Conflict
605
 
 
606
603
# TODO: There should be a base revid attribute to better inform the user about
607
604
# how the conflicts were generated.
608
 
class TextConflict(PathConflict):
 
605
class TextConflict(Conflict):
609
606
    """The merge algorithm could not resolve all differences encountered."""
610
607
 
611
608
    has_files = True
614
611
 
615
612
    format = 'Text conflict in %(path)s'
616
613
 
 
614
    rformat = '%(class)s(%(path)r, %(file_id)r)'
 
615
 
617
616
    def associated_filenames(self):
618
617
        return [self.path + suffix for suffix in CONFLICT_SUFFIXES]
619
618