Show More
@@ -129,19 +129,10 b' def manifestmerge(repo, p1, p2, pa, over' | |||
|
129 | 129 | repo.ui.debug(_(" overwrite %s partial %s\n") % (overwrite, bool(partial))) |
|
130 | 130 | repo.ui.debug(_(" ancestor %s local %s remote %s\n") % (pa, p1, p2)) |
|
131 | 131 | |
|
132 | action = [] | |
|
133 | copy, copied, diverge = {}, {}, {} | |
|
132 | 134 | m1 = p1.manifest() |
|
133 | 135 | m2 = p2.manifest() |
|
134 | backwards = (pa == p2) | |
|
135 | ||
|
136 | if overwrite: | |
|
137 | ma = m1 | |
|
138 | elif backwards: | |
|
139 | ma = p1.p1().manifest() | |
|
140 | else: | |
|
141 | ma = pa.manifest() | |
|
142 | ||
|
143 | action = [] | |
|
144 | copy, copied, diverge = {}, {}, {} | |
|
145 | 136 | |
|
146 | 137 | def fmerge(f, f2, fa): |
|
147 | 138 | """merge flags""" |
@@ -164,8 +155,13 b' def manifestmerge(repo, p1, p2, pa, over' | |||
|
164 | 155 | repo.ui.debug(" %s: %s -> %s\n" % (f, msg, m)) |
|
165 | 156 | action.append((f, m) + args) |
|
166 | 157 | |
|
167 | if pa and not (backwards or overwrite): | |
|
168 | if repo.ui.configbool("merge", "followcopies", True): | |
|
158 | if overwrite: | |
|
159 | ma = m1 | |
|
160 | elif p2 == pa: # backwards | |
|
161 | ma = p1.p1().manifest() | |
|
162 | else: | |
|
163 | ma = pa.manifest() | |
|
164 | if pa and repo.ui.configbool("merge", "followcopies", True): | |
|
169 | 165 | dirs = repo.ui.configbool("merge", "followdirs", True) |
|
170 | 166 | copy, diverge = copies.copies(repo, p1, p2, pa, dirs) |
|
171 | 167 | copied = set(copy.values()) |
General Comments 0
You need to be logged in to leave comments.
Login now