##// END OF EJS Templates
checkcopies: add a sanity check against false-positive copies...
Gábor Stefanik -
r30188:8a864844 default
parent child Browse files
Show More
@@ -543,7 +543,8 b' def _checkcopies(ctx, f, m1, m2, base, l'
543 # unrelated to the droids we are looking for.
543 # unrelated to the droids we are looking for.
544 cr = _related(oc, c2, base.rev())
544 cr = _related(oc, c2, base.rev())
545 if cr and (of == f or of == c2.path()): # non-divergent
545 if cr and (of == f or of == c2.path()): # non-divergent
546 data['copy'][f] = of
546 if of in mb:
547 data['copy'][f] = of
547 return
548 return
548
549
549 if of in mb:
550 if of in mb:
@@ -427,8 +427,8 b' Graft with --log'
427 $ hg graft 3 --log -u foo
427 $ hg graft 3 --log -u foo
428 grafting 3:4c60f11aa304 "3"
428 grafting 3:4c60f11aa304 "3"
429 warning: can't find ancestor for 'c' copied from 'b'!
429 warning: can't find ancestor for 'c' copied from 'b'!
430 $ hg log --template '{rev} {parents} {desc}\n' -r tip
430 $ hg log --template '{rev}:{node|short} {parents} {desc}\n' -r tip
431 14 1:5d205f8b35b6 3
431 14:0c921c65ef1e 1:5d205f8b35b6 3
432 (grafted from 4c60f11aa304a54ae1c199feb94e7fc771e51ed8)
432 (grafted from 4c60f11aa304a54ae1c199feb94e7fc771e51ed8)
433
433
434 Resolve conflicted graft
434 Resolve conflicted graft
@@ -620,7 +620,7 b' Test simple destination'
620 date: Thu Jan 01 00:00:00 1970 +0000
620 date: Thu Jan 01 00:00:00 1970 +0000
621 summary: 2
621 summary: 2
622
622
623 changeset: 14:f64defefacee
623 changeset: 14:0c921c65ef1e
624 parent: 1:5d205f8b35b6
624 parent: 1:5d205f8b35b6
625 user: foo
625 user: foo
626 date: Thu Jan 01 00:00:00 1970 +0000
626 date: Thu Jan 01 00:00:00 1970 +0000
General Comments 0
You need to be logged in to leave comments. Login now