--- a/tests/test-narrow-clone.t Tue Sep 11 11:47:10 2018 -0700
+++ b/tests/test-narrow-clone.t Tue Sep 11 16:04:55 2018 -0700
@@ -239,7 +239,7 @@
> %include foo
> [include]
> path:dir/tests/
- > path:file:dir/src/f12
+ > path:dir/src/f12
> EOF
$ hg clone ssh://user@dummy/master specfile --narrowspec narrowspecs
@@ -250,7 +250,7 @@
$ cat > narrowspecs <<EOF
> [include]
> path:dir/tests/
- > path:file:dir/src/f12
+ > path:dir/src/f12
> EOF
$ hg clone ssh://user@dummy/master specfile --narrowspec narrowspecs
@@ -259,14 +259,14 @@
adding changesets
adding manifests
adding file changes
- added 21 changesets with 20 changes to 20 files
- new changesets f93383bb3e99:26ce255d5b5d
+ added 23 changesets with 21 changes to 21 files
+ new changesets c13e3773edb4:26ce255d5b5d
updating to branch default
- 20 files updated, 0 files merged, 0 files removed, 0 files unresolved
+ 21 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ cd specfile
$ hg tracked
+ I path:dir/src/f12
I path:dir/tests
- I path:file:dir/src/f12
$ cd ..
Narrow spec with invalid patterns is rejected