test-walk: enable absolute path tests
authorMatt Mackall <mpm@selenic.com>
Fri, 13 Aug 2010 13:20:15 -0500
changeset 11903 a4cc9e6f41c3
parent 11902 3c9a5ed9b1e2
child 11904 122e3e0ba3e4
test-walk: enable absolute path tests
tests/test-walk.t
--- a/tests/test-walk.t	Mon Aug 16 02:03:29 2010 +0900
+++ b/tests/test-walk.t	Fri Aug 13 13:20:15 2010 -0500
@@ -198,28 +198,41 @@
   $ hg debugwalk beans/.hg
   abort: path 'beans/.hg' is inside repo 'beans'
 
-Don't know how to test absolute paths without always getting a false
-error.
-# hg debugwalk `pwd`/beans
-# hg debugwalk `pwd`/..
+Test absolute paths:
+
+  $ hg debugwalk `pwd`/beans
+  f  beans/black     beans/black
+  f  beans/borlotti  beans/borlotti
+  f  beans/kidney    beans/kidney
+  f  beans/navy      beans/navy
+  f  beans/pinto     beans/pinto
+  f  beans/turtle    beans/turtle
+  $ hg debugwalk `pwd`/..
+  abort: .*/.. not under root
+
+Test patterns:
 
   $ hg debugwalk glob:\*
   f  fennel      fennel
   f  fenugreek   fenugreek
   f  fiddlehead  fiddlehead
   f  glob:glob   glob:glob
+
   $ hg debugwalk 'glob:**e'
   f  beans/turtle                    beans/turtle
   f  mammals/Procyonidae/cacomistle  mammals/Procyonidae/cacomistle
+
   $ hg debugwalk 're:.*[kb]$'
   f  beans/black    beans/black
   f  fenugreek      fenugreek
   f  glob:glob      glob:glob
   f  mammals/skunk  mammals/skunk
+
   $ hg debugwalk path:beans/black
   f  beans/black  beans/black  exact
   $ hg debugwalk path:beans//black
   f  beans/black  beans/black  exact
+
   $ hg debugwalk relglob:Procyonidae
   $ hg debugwalk 'relglob:Procyonidae/**'
   f  mammals/Procyonidae/cacomistle  mammals/Procyonidae/cacomistle