tests/test-walk.t
changeset 16985 40c9aa702303
parent 16984 6932e85c5c95
child 18450 4f9a52858512
--- a/tests/test-walk.t	Mon Jun 18 23:44:11 2012 +0200
+++ b/tests/test-walk.t	Tue Jun 19 00:20:38 2012 +0200
@@ -1,5 +1,3 @@
-  $ "$TESTDIR/hghave" no-windows || exit 80
-
   $ hg init t
   $ cd t
   $ mkdir -p beans
@@ -107,7 +105,7 @@
   f  beans/navy      ../beans/navy
   f  beans/pinto     ../beans/pinto
   f  beans/turtle    ../beans/turtle
-  $ hg debugwalk -I 'relpath:../beans'
+  $ hg debugwalk -I 'relpath:detour/../../beans'
   f  beans/black     ../beans/black
   f  beans/borlotti  ../beans/borlotti
   f  beans/kidney    ../beans/kidney
@@ -154,10 +152,10 @@
   f  mammals/Procyonidae/raccoon     Procyonidae/raccoon
   f  mammals/skunk                   skunk
   $ hg debugwalk .hg
-  abort: path 'mammals/.hg' is inside nested repo 'mammals'
+  abort: path 'mammals/.hg' is inside nested repo 'mammals' (glob)
   [255]
   $ hg debugwalk ../.hg
-  abort: path contains illegal component: .hg
+  abort: path contains illegal component: .hg (glob)
   [255]
   $ cd ..
 
@@ -189,16 +187,16 @@
   abort: beans/../.. not under root
   [255]
   $ hg debugwalk .hg
-  abort: path contains illegal component: .hg
+  abort: path contains illegal component: .hg (glob)
   [255]
   $ hg debugwalk beans/../.hg
-  abort: path contains illegal component: .hg
+  abort: path contains illegal component: .hg (glob)
   [255]
   $ hg debugwalk beans/../.hg/data
-  abort: path contains illegal component: .hg/data
+  abort: path contains illegal component: .hg/data (glob)
   [255]
   $ hg debugwalk beans/.hg
-  abort: path 'beans/.hg' is inside nested repo 'beans'
+  abort: path 'beans/.hg' is inside nested repo 'beans' (glob)
   [255]
 
 Test absolute paths:
@@ -312,12 +310,12 @@
 
 Test listfile and listfile0
 
-  $ python -c "file('../listfile0', 'wb').write('fenugreek\0new\0')"
-  $ hg debugwalk -I 'listfile0:../listfile0'
+  $ python -c "file('listfile0', 'wb').write('fenugreek\0new\0')"
+  $ hg debugwalk -I 'listfile0:listfile0'
   f  fenugreek  fenugreek
   f  new        new
-  $ python -c "file('../listfile', 'wb').write('fenugreek\nnew\r\nmammals/skunk\n')"
-  $ hg debugwalk -I 'listfile:../listfile'
+  $ python -c "file('listfile', 'wb').write('fenugreek\nnew\r\nmammals/skunk\n')"
+  $ hg debugwalk -I 'listfile:listfile'
   f  fenugreek      fenugreek
   f  mammals/skunk  mammals/skunk
   f  new            new