tests: demonstrate broken copies.pathcopies() stable
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 01 Nov 2018 11:24:45 -0700
branchstable
changeset 40447 f1c1b4d0e695
parent 40446 b6bc2293cdf3
child 40448 873f3682c8af
tests: demonstrate broken copies.pathcopies() Differential Revision: https://phab.mercurial-scm.org/D5202
tests/test-narrow-copies.t
--- a/tests/test-narrow-copies.t	Wed Oct 31 20:32:42 2018 +0100
+++ b/tests/test-narrow-copies.t	Thu Nov 01 11:24:45 2018 -0700
@@ -18,10 +18,12 @@
   $ echo modified > inside/f2
   $ hg ci -qm 'modify inside/f2'
 
+  $ mkdir outside
+  $ echo new > outside/f3
+  $ hg ci -Aqm 'add outside/f3'
   $ cd ..
 
-  $ hg clone --narrow ssh://user@dummy/master narrow --include inside
-  requesting all changes
+  $ hg clone --narrow ssh://user@dummy/master narrow --include inside -r 2
   adding changesets
   adding manifests
   adding file changes
@@ -55,3 +57,10 @@
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     move f2 from outside
   
+  $ echo new > inside/f4
+  $ hg ci -Aqm 'add inside/f4'
+  $ hg pull -q
+  $ hg --config extensions.rebase= rebase -d tip
+  rebasing 3:4f84b666728c "add inside/f4"
+  abort: data/outside/f3.i@54e53435331b: no match found!
+  [255]