# HG changeset patch # User Martin von Zweigbergk # Date 1614968204 28800 # Node ID 86ee73018e62f13f4141aa69776710e15fef6a8c # Parent 5d483e3bb60ef6afb0cb9e0c0dcf8cdb436f35d2 tests: demonstrate how grafted copies are counted when tracing across branches This test demonstrates a regression from 1d6d1a15. Differential Revision: https://phab.mercurial-scm.org/D10117 diff -r 5d483e3bb60e -r 86ee73018e62 tests/test-copies.t --- a/tests/test-copies.t Sat Mar 06 23:43:44 2021 -0500 +++ b/tests/test-copies.t Fri Mar 05 10:16:44 2021 -0800 @@ -378,6 +378,32 @@ $ hg debugpathcopies 1 3 x -> z +Copy x->y on two separate branches. Pathcopies from one branch to the other +should not report the copy. + $ newrepo + $ echo x > x + $ hg ci -Aqm 'add x' + $ hg cp x y + $ hg ci -qm 'copy x to y' + $ hg co -q 0 + $ hg graft 1 -q + $ hg l + @ 2 copy x to y + | y + | o 1 copy x to y + |/ y + o 0 add x + x + $ hg debugp1copies -r 1 + x -> y + $ hg debugp1copies -r 2 + x -> y +BROKEN: These two should not report any copies + $ hg debugpathcopies 1 2 + x -> y + $ hg debugpathcopies 2 1 + x -> y + Copy x to y on one side of merge, create y and rename to z on the other side. $ newrepo $ echo x > x