~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/merge_core.py

  • Committer: Aaron Bentley
  • Date: 2005-10-27 23:43:15 UTC
  • mfrom: (1185.24.3)
  • mto: (1185.35.8)
  • mto: This revision was merged to the branch mainline in revision 1491.
  • Revision ID: abentley@panoramicfeedback.com-20051027234315-1f51cfe5a0303e31
Merged reprocessing for merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
class ApplyMerge3:
12
12
    history_based = False
13
13
    """Contents-change wrapper around merge3.Merge3"""
14
 
    def __init__(self, file_id, base, other, show_base=False):
 
14
    def __init__(self, file_id, base, other, show_base=False, reprocess=False):
15
15
        self.file_id = file_id
16
16
        self.base = base
17
17
        self.other = other
18
18
        self.show_base = show_base
 
19
        self.reprocess = reprocess
19
20
 
20
21
    def is_creation(self):
21
22
        return False
58
59
            base_marker = None
59
60
        for line in m3.merge_lines(name_a = "TREE", name_b = "MERGE-SOURCE", 
60
61
                       name_base = "BASE-REVISION",
61
 
                       start_marker=start_marker, base_marker=base_marker):
 
62
                       start_marker=start_marker, base_marker=base_marker,
 
63
                       reprocess = self.reprocess):
62
64
            if line.startswith(start_marker):
63
65
                new_conflicts = True
64
66
                output_file.write(line.replace(start_marker, '<' * 7))