/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/textmerge.py

  • Committer: Jelmer Vernooij
  • Date: 2019-03-04 00:16:27 UTC
  • mfrom: (7293 work)
  • mto: This revision was merged to the branch mainline in revision 7318.
  • Revision ID: jelmer@jelmer.uk-20190304001627-v6u7o6pf97tukhek
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    A_MARKER = b'<<<<<<< \n'
45
45
    B_MARKER = b'>>>>>>> \n'
46
46
    SPLIT_MARKER = b'=======\n'
 
47
 
47
48
    def __init__(self, a_marker=A_MARKER, b_marker=B_MARKER,
48
49
                 split_marker=SPLIT_MARKER):
49
50
        self.a_marker = a_marker
143
144
            # non-matching lines
144
145
            yield(self.lines_a[pos_a:ai], self.lines_b[pos_b:bi])
145
146
            # matching lines
146
 
            yield(self.lines_a[ai:ai+l],)
 
147
            yield(self.lines_a[ai:ai + l],)
147
148
            pos_a = ai + l
148
149
            pos_b = bi + l
149
150
        # final non-matching lines