D4531: tests: drop extra "file:" prefix from paths in narrow test

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Sep 11 19:44:20 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0a5f7e16ec96: tests: drop extra "file:" prefix from paths in narrow test (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4531?vs=10904&id=10908

REVISION DETAIL
  https://phab.mercurial-scm.org/D4531

AFFECTED FILES
  tests/test-narrow-clone-no-ellipsis.t
  tests/test-narrow-clone.t

CHANGE DETAILS

diff --git a/tests/test-narrow-clone.t b/tests/test-narrow-clone.t
--- a/tests/test-narrow-clone.t
+++ b/tests/test-narrow-clone.t
@@ -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,23 +250,23 @@
   $ 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
   reading narrowspec from '$TESTTMP/narrowspecs'
   requesting all changes
   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
diff --git a/tests/test-narrow-clone-no-ellipsis.t b/tests/test-narrow-clone-no-ellipsis.t
--- a/tests/test-narrow-clone-no-ellipsis.t
+++ b/tests/test-narrow-clone-no-ellipsis.t
@@ -130,7 +130,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
@@ -141,21 +141,21 @@
   $ 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
   reading narrowspec from '$TESTTMP/narrowspecs'
   requesting all changes
   adding changesets
   adding manifests
   adding file changes
-  added 40 changesets with 20 changes to 20 files
+  added 40 changesets with 21 changes to 21 files
   new changesets 681085829a73: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 ..



To: martinvonz, durin42, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list