##// END OF EJS Templates
copies: begin separating mergecopies sides
Matt Mackall -
r26316:d5618e21 default
parent child Browse files
Show More
@@ -316,9 +316,9 b' def mergecopies(repo, c1, c2, ca):'
316 return fctx
316 return fctx
317 return util.lrucachefunc(makectx)
317 return util.lrucachefunc(makectx)
318
318
319 copy = {}
319 copy1, copy2, = {}, {}
320 movewithdir = {}
320 movewithdir1, movewithdir2 = {}, {}
321 fullcopy = {}
321 fullcopy1, fullcopy2 = {}, {}
322 diverge = {}
322 diverge = {}
323
323
324 repo.ui.debug(" searching for copies back to rev %d\n" % limit)
324 repo.ui.debug(" searching for copies back to rev %d\n" % limit)
@@ -329,11 +329,15 b' def mergecopies(repo, c1, c2, ca):'
329
329
330 for f in u1:
330 for f in u1:
331 getfctx = setupctx(c1)
331 getfctx = setupctx(c1)
332 checkcopies(getfctx, f, m1, m2, ca, limit, diverge, copy, fullcopy)
332 checkcopies(getfctx, f, m1, m2, ca, limit, diverge, copy1, fullcopy1)
333
333
334 for f in u2:
334 for f in u2:
335 getfctx = setupctx(c2)
335 getfctx = setupctx(c2)
336 checkcopies(getfctx, f, m2, m1, ca, limit, diverge, copy, fullcopy)
336 checkcopies(getfctx, f, m2, m1, ca, limit, diverge, copy2, fullcopy2)
337
338 copy = dict(copy1.items() + copy2.items())
339 movewithdir = dict(movewithdir1.items() + movewithdir2.items())
340 fullcopy = dict(fullcopy1.items() + fullcopy2.items())
337
341
338 renamedelete = {}
342 renamedelete = {}
339 renamedelete2 = set()
343 renamedelete2 = set()
General Comments 0
You need to be logged in to leave comments. Login now