##// END OF EJS Templates
copies: rename diverge2 to divergeset for clarity
Matt Mackall -
r26317:07ac78ba default
parent child Browse files
Show More
@@ -341,7 +341,7 b' def mergecopies(repo, c1, c2, ca):'
341 341
342 342 renamedelete = {}
343 343 renamedelete2 = set()
344 diverge2 = set()
344 divergeset = set()
345 345 for of, fl in diverge.items():
346 346 if len(fl) == 1 or of in c1 or of in c2:
347 347 del diverge[of] # not actually divergent, or not a rename
@@ -351,7 +351,7 b' def mergecopies(repo, c1, c2, ca):'
351 351 renamedelete[of] = [f for f in fl if f in c1 or f in c2]
352 352 renamedelete2.update(fl) # reverse map for below
353 353 else:
354 diverge2.update(fl) # reverse map for below
354 divergeset.update(fl) # reverse map for below
355 355
356 356 bothnew = sorted(addedinm1 & addedinm2)
357 357 if bothnew:
@@ -376,13 +376,13 b' def mergecopies(repo, c1, c2, ca):'
376 376 note = ""
377 377 if f in copy:
378 378 note += "*"
379 if f in diverge2:
379 if f in divergeset:
380 380 note += "!"
381 381 if f in renamedelete2:
382 382 note += "%"
383 383 repo.ui.debug(" src: '%s' -> dst: '%s' %s\n" % (fullcopy[f], f,
384 384 note))
385 del diverge2
385 del divergeset
386 386
387 387 if not fullcopy:
388 388 return copy, movewithdir, diverge, renamedelete
General Comments 0
You need to be logged in to leave comments. Login now