##// END OF EJS Templates
manifestmerge: drop redundant flags calls
Siddharth Agarwal -
r18823:b2a36e9b default
parent child Browse files
Show More
@@ -275,7 +275,7 b' def manifestmerge(repo, wctx, p2, pa, br'
275 pass
275 pass
276 elif n1 and f in movewithdir: # directory rename
276 elif n1 and f in movewithdir: # directory rename
277 f2 = movewithdir[f]
277 f2 = movewithdir[f]
278 actions.append((f, "d", (None, f2, m1.flags(f)),
278 actions.append((f, "d", (None, f2, fl1),
279 "remote renamed directory to " + f2))
279 "remote renamed directory to " + f2))
280 elif n1 and f in copy:
280 elif n1 and f in copy:
281 f2 = copy[f]
281 f2 = copy[f]
@@ -290,7 +290,7 b' def manifestmerge(repo, wctx, p2, pa, br'
290 actions.append((f, "r", None, "other deleted"))
290 actions.append((f, "r", None, "other deleted"))
291 elif n2 and f in movewithdir:
291 elif n2 and f in movewithdir:
292 f2 = movewithdir[f]
292 f2 = movewithdir[f]
293 actions.append((None, "d", (f, f2, m2.flags(f)),
293 actions.append((None, "d", (f, f2, fl2),
294 "local renamed directory to " + f2))
294 "local renamed directory to " + f2))
295 elif n2 and f in copy:
295 elif n2 and f in copy:
296 f2 = copy[f]
296 f2 = copy[f]
@@ -314,7 +314,7 b' def manifestmerge(repo, wctx, p2, pa, br'
314 # Checking whether the files are different is expensive, so we
314 # Checking whether the files are different is expensive, so we
315 # don't do that when we can avoid it.
315 # don't do that when we can avoid it.
316 if force and not branchmerge:
316 if force and not branchmerge:
317 actions.append((f, "g", (m2.flags(f),), "remote created"))
317 actions.append((f, "g", (fl2,), "remote created"))
318 else:
318 else:
319 different = _checkunknownfile(repo, wctx, p2, f)
319 different = _checkunknownfile(repo, wctx, p2, f)
320 if force and branchmerge and different:
320 if force and branchmerge and different:
@@ -323,7 +323,7 b' def manifestmerge(repo, wctx, p2, pa, br'
323 elif not force and different:
323 elif not force and different:
324 aborts.append((f, "ud"))
324 aborts.append((f, "ud"))
325 else:
325 else:
326 actions.append((f, "g", (m2.flags(f),), "remote created"))
326 actions.append((f, "g", (fl2,), "remote created"))
327 elif n2 and n2 != ma[f]:
327 elif n2 and n2 != ma[f]:
328 prompts.append((f, "dc")) # prompt deleted/changed
328 prompts.append((f, "dc")) # prompt deleted/changed
329
329
General Comments 0
You need to be logged in to leave comments. Login now