Show More
@@ -96,7 +96,6 b' class Merge3Text(object):' | |||||
96 | mid_marker=b'=======', |
|
96 | mid_marker=b'=======', | |
97 | end_marker=b'>>>>>>>', |
|
97 | end_marker=b'>>>>>>>', | |
98 | base_marker=None, |
|
98 | base_marker=None, | |
99 | localorother=None, |
|
|||
100 | minimize=False, |
|
99 | minimize=False, | |
101 | ): |
|
100 | ): | |
102 | """Return merge in cvs-like form.""" |
|
101 | """Return merge in cvs-like form.""" | |
@@ -128,28 +127,21 b' class Merge3Text(object):' | |||||
128 | for i in range(t[1], t[2]): |
|
127 | for i in range(t[1], t[2]): | |
129 | yield self.b[i] |
|
128 | yield self.b[i] | |
130 | elif what == b'conflict': |
|
129 | elif what == b'conflict': | |
131 | if localorother == b'local': |
|
130 | self.conflicts = True | |
132 | for i in range(t[3], t[4]): |
|
131 | if start_marker is not None: | |
133 |
|
|
132 | yield start_marker + newline | |
134 | elif localorother == b'other': |
|
133 | for i in range(t[3], t[4]): | |
135 | for i in range(t[5], t[6]): |
|
134 | yield self.a[i] | |
136 | yield self.b[i] |
|
135 | if base_marker is not None: | |
137 | else: |
|
136 | yield base_marker + newline | |
138 | self.conflicts = True |
|
137 | for i in range(t[1], t[2]): | |
139 | if start_marker is not None: |
|
138 | yield self.base[i] | |
140 |
|
|
139 | if mid_marker is not None: | |
141 | for i in range(t[3], t[4]): |
|
140 | yield mid_marker + newline | |
142 | yield self.a[i] |
|
141 | for i in range(t[5], t[6]): | |
143 |
|
|
142 | yield self.b[i] | |
144 |
|
|
143 | if end_marker is not None: | |
145 | for i in range(t[1], t[2]): |
|
144 | yield end_marker + newline | |
146 | yield self.base[i] |
|
|||
147 | if mid_marker is not None: |
|
|||
148 | yield mid_marker + newline |
|
|||
149 | for i in range(t[5], t[6]): |
|
|||
150 | yield self.b[i] |
|
|||
151 | if end_marker is not None: |
|
|||
152 | yield end_marker + newline |
|
|||
153 | else: |
|
145 | else: | |
154 | raise ValueError(what) |
|
146 | raise ValueError(what) | |
155 |
|
147 |
General Comments 0
You need to be logged in to leave comments.
Login now