# HG changeset patch
# User Martin von Zweigbergk <martinvonz@google.com>
# Date 1541096685 25200
#      Thu Nov 01 11:24:45 2018 -0700
# Branch stable
# Node ID f1c1b4d0e695045a685655808716aedc91550473
# Parent  b6bc2293cdf353ad5d14ad47c7d4ee0adc91dfda
tests: demonstrate broken copies.pathcopies()

Differential Revision: https://phab.mercurial-scm.org/D5202

diff --git a/tests/test-narrow-copies.t b/tests/test-narrow-copies.t
--- a/tests/test-narrow-copies.t
+++ b/tests/test-narrow-copies.t
@@ -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]