##// END OF EJS Templates
copies: add dstctx parameter...
Stanislau Hlebik -
r32562:e4d1bc14 default
parent child Browse files
Show More
@@ -414,10 +414,10 b' def mergecopies(repo, c1, c2, base):'
414 baselabel='topological common ancestor')
414 baselabel='topological common ancestor')
415
415
416 for f in u1u:
416 for f in u1u:
417 _checkcopies(c1, f, m1, m2, base, tca, dirtyc1, limit, data1)
417 _checkcopies(c1, c2, f, m1, m2, base, tca, dirtyc1, limit, data1)
418
418
419 for f in u2u:
419 for f in u2u:
420 _checkcopies(c2, f, m2, m1, base, tca, dirtyc2, limit, data2)
420 _checkcopies(c2, c1, f, m2, m1, base, tca, dirtyc2, limit, data2)
421
421
422 copy = dict(data1['copy'].items() + data2['copy'].items())
422 copy = dict(data1['copy'].items() + data2['copy'].items())
423 fullcopy = dict(data1['fullcopy'].items() + data2['fullcopy'].items())
423 fullcopy = dict(data1['fullcopy'].items() + data2['fullcopy'].items())
@@ -462,8 +462,8 b' def mergecopies(repo, c1, c2, base):'
462 'incompletediverge': bothincompletediverge
462 'incompletediverge': bothincompletediverge
463 }
463 }
464 for f in bothnew:
464 for f in bothnew:
465 _checkcopies(c1, f, m1, m2, base, tca, dirtyc1, limit, both1)
465 _checkcopies(c1, c2, f, m1, m2, base, tca, dirtyc1, limit, both1)
466 _checkcopies(c2, f, m2, m1, base, tca, dirtyc2, limit, both2)
466 _checkcopies(c2, c1, f, m2, m1, base, tca, dirtyc2, limit, both2)
467 if dirtyc1:
467 if dirtyc1:
468 # incomplete copies may only be found on the "dirty" side for bothnew
468 # incomplete copies may only be found on the "dirty" side for bothnew
469 assert not both2['incomplete']
469 assert not both2['incomplete']
@@ -598,11 +598,13 b' def _related(f1, f2, limit):'
598 except StopIteration:
598 except StopIteration:
599 return False
599 return False
600
600
601 def _checkcopies(srcctx, f, msrc, mdst, base, tca, remotebase, limit, data):
601 def _checkcopies(srcctx, dstctx, f, msrc, mdst, base, tca, remotebase,
602 limit, data):
602 """
603 """
603 check possible copies of f from msrc to mdst
604 check possible copies of f from msrc to mdst
604
605
605 srcctx = starting context for f in msrc
606 srcctx = starting context for f in msrc
607 dstctx = destination context for f in mdst
606 f = the filename to check (as in msrc)
608 f = the filename to check (as in msrc)
607 msrc = the source manifest
609 msrc = the source manifest
608 mdst = the destination manifest
610 mdst = the destination manifest
General Comments 0
You need to be logged in to leave comments. Login now