changeset 40447:f1c1b4d0e695 stable

tests: demonstrate broken copies.pathcopies() Differential Revision: https://phab.mercurial-scm.org/D5202
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 01 Nov 2018 11:24:45 -0700
parents b6bc2293cdf3
children 873f3682c8af
files tests/test-narrow-copies.t
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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]