diff --git a/tests/test-walk.t b/tests/test-walk.t --- a/tests/test-walk.t +++ b/tests/test-walk.t @@ -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 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