/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: Martin
  • Date: 2018-11-16 19:09:31 UTC
  • mfrom: (7175 work)
  • mto: This revision was merged to the branch mainline in revision 7177.
  • Revision ID: gzlist@googlemail.com-20181116190931-rmh7pk2an1zuecby
Merge trunk to resolve conflicts

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