summaryrefslogtreecommitdiff
path: root/tests/test-walk.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-walk.t')
-rw-r--r--tests/test-walk.t55
1 files changed, 20 insertions, 35 deletions
diff --git a/tests/test-walk.t b/tests/test-walk.t
index 52de65e..0829376 100644
--- a/tests/test-walk.t
+++ b/tests/test-walk.t
@@ -12,6 +12,7 @@
$ echo fennel > fennel
$ echo fenugreek > fenugreek
$ echo fiddlehead > fiddlehead
+ $ echo glob:glob > glob:glob
$ hg addremove
adding beans/black
adding beans/borlotti
@@ -22,10 +23,12 @@
adding fennel
adding fenugreek
adding fiddlehead
+ adding glob:glob
adding mammals/Procyonidae/cacomistle
adding mammals/Procyonidae/coatimundi
adding mammals/Procyonidae/raccoon
adding mammals/skunk
+ warning: filename contains ':', which is reserved on Windows: 'glob:glob'
$ hg commit -m "commit #0"
$ hg debugwalk
@@ -38,6 +41,7 @@
f fennel fennel
f fenugreek fenugreek
f fiddlehead fiddlehead
+ f glob:glob glob:glob
f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
@@ -52,6 +56,7 @@
f fennel fennel
f fenugreek fenugreek
f fiddlehead fiddlehead
+ f glob:glob glob:glob
f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
@@ -68,6 +73,7 @@
f fennel ../fennel
f fenugreek ../fenugreek
f fiddlehead ../fiddlehead
+ f glob:glob ../glob:glob
f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
f mammals/Procyonidae/raccoon Procyonidae/raccoon
@@ -76,6 +82,7 @@
f fennel ../fennel
f fenugreek ../fenugreek
f fiddlehead ../fiddlehead
+ f glob:glob ../glob:glob
f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
f mammals/Procyonidae/raccoon Procyonidae/raccoon
@@ -105,7 +112,7 @@
f beans/navy ../beans/navy
f beans/pinto ../beans/pinto
f beans/turtle ../beans/turtle
- $ hg debugwalk -I 'relpath:detour/../../beans'
+ $ hg debugwalk -I 'relpath:../beans'
f beans/black ../beans/black
f beans/borlotti ../beans/borlotti
f beans/kidney ../beans/kidney
@@ -152,10 +159,10 @@
f mammals/Procyonidae/raccoon Procyonidae/raccoon
f mammals/skunk skunk
$ hg debugwalk .hg
- abort: path 'mammals/.hg' is inside nested repo 'mammals' (glob)
+ abort: path 'mammals/.hg' is inside nested repo 'mammals'
[255]
$ hg debugwalk ../.hg
- abort: path contains illegal component: .hg (glob)
+ abort: path contains illegal component: .hg
[255]
$ cd ..
@@ -187,16 +194,16 @@
abort: beans/../.. not under root
[255]
$ hg debugwalk .hg
- abort: path contains illegal component: .hg (glob)
+ abort: path contains illegal component: .hg
[255]
$ hg debugwalk beans/../.hg
- abort: path contains illegal component: .hg (glob)
+ abort: path contains illegal component: .hg
[255]
$ hg debugwalk beans/../.hg/data
- abort: path contains illegal component: .hg/data (glob)
+ abort: path contains illegal component: .hg/data
[255]
$ hg debugwalk beans/.hg
- abort: path 'beans/.hg' is inside nested repo 'beans' (glob)
+ abort: path 'beans/.hg' is inside nested repo 'beans'
[255]
Test absolute paths:
@@ -218,26 +225,7 @@ Test patterns:
f fennel fennel
f fenugreek fenugreek
f fiddlehead fiddlehead
-#if eol-in-paths
- $ echo glob:glob > glob:glob
- $ hg addremove
- adding glob:glob
- warning: filename contains ':', which is reserved on Windows: 'glob:glob'
- $ hg debugwalk glob:\*
- f fennel fennel
- f fenugreek fenugreek
- f fiddlehead fiddlehead
f glob:glob glob:glob
- $ hg debugwalk glob:glob
- glob: No such file or directory
- $ hg debugwalk glob:glob:glob
- f glob:glob glob:glob exact
- $ hg debugwalk path:glob:glob
- f glob:glob glob:glob exact
- $ rm glob:glob
- $ hg addremove
- removing glob:glob
-#endif
$ hg debugwalk 'glob:**e'
f beans/turtle beans/turtle
@@ -246,6 +234,7 @@ Test patterns:
$ 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
@@ -283,13 +272,11 @@ Test patterns:
f mammals/skunk mammals/skunk
$ hg debugwalk 'glob:j*'
$ hg debugwalk NOEXIST
- NOEXIST: * (glob)
+ NOEXIST: No such file or directory
-#if fifo
$ mkfifo fifo
$ hg debugwalk fifo
fifo: unsupported file type (type is fifo)
-#endif
$ rm fenugreek
$ hg debugwalk fenugreek
@@ -310,12 +297,12 @@ Test patterns:
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
@@ -329,5 +316,3 @@ Test listfile and listfile0
f mammals/skunk ../t/mammals/skunk exact
$ hg debugwalk --cwd ../t mammals/skunk
f mammals/skunk mammals/skunk exact
-
- $ cd ..