tests/test-copies-chain-merge.t
changeset 46159 929054848d6c
parent 46035 6c960b708ac4
child 46160 1d6aac94e6d5
--- a/tests/test-copies-chain-merge.t	Sun Dec 13 20:26:27 2020 +0100
+++ b/tests/test-copies-chain-merge.t	Sun Dec 13 20:16:34 2020 +0100
@@ -872,6 +872,19 @@
 Test copy information chaining
 ==============================
 
+Check that matching only affect the destination and not intermediate path
+-------------------------------------------------------------------------
+
+The two status call should give the same value for f
+
+  $ hg status --copies --rev 'desc("i-0")' --rev 'desc("a-2")'
+  A f
+    a
+  R a
+  $ hg status --copies --rev 'desc("i-0")' --rev 'desc("a-2")' f
+  A f
+    a (no-changeset no-compatibility !)
+
 merging with unrelated change does not interfere with the renames
 ---------------------------------------------------------------