Mercurial > hg
changeset 4191:02de0f98ca33
make the output of test-walk more readable
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sat, 10 Mar 2007 23:00:52 -0300 |
parents | 769bc4af561d |
children | 9814d600011e |
files | tests/test-walk tests/test-walk.out |
diffstat | 2 files changed, 136 insertions(+), 42 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-walk Sat Mar 10 23:00:51 2007 -0300 +++ b/tests/test-walk Sat Mar 10 23:00:52 2007 -0300 @@ -1,5 +1,19 @@ #!/bin/sh +debugwalk() +{ + echo "hg debugwalk $@" + hg debugwalk "$@" + echo +} + +chdir() +{ + echo "cd $@" + cd "$@" + echo +} + mkdir t cd t hg init @@ -18,51 +32,51 @@ echo glob:glob > glob:glob hg addremove hg commit -m "commit #0" -d "1000000 0" -hg debugwalk -hg debugwalk -I. -cd mammals -hg debugwalk . -hg debugwalk -I. -hg debugwalk Procyonidae -cd Procyonidae -hg debugwalk . -hg debugwalk .. -cd .. -hg debugwalk ../beans -hg debugwalk . -hg debugwalk .hg -hg debugwalk ../.hg -cd .. -hg debugwalk -Ibeans -hg debugwalk 'glob:mammals/../beans/b*' -hg debugwalk '-X*/Procyonidae' mammals -hg debugwalk path:mammals -hg debugwalk .. -hg debugwalk beans/../.. -hg debugwalk .hg -hg debugwalk beans/../.hg -hg debugwalk beans/../.hg/data -hg debugwalk beans/.hg +debugwalk +debugwalk -I. +chdir mammals +debugwalk . +debugwalk -I. +debugwalk Procyonidae +chdir Procyonidae +debugwalk . +debugwalk .. +chdir .. +debugwalk ../beans +debugwalk . +debugwalk .hg +debugwalk ../.hg +chdir .. +debugwalk -Ibeans +debugwalk 'glob:mammals/../beans/b*' +debugwalk '-X*/Procyonidae' mammals +debugwalk path:mammals +debugwalk .. +debugwalk beans/../.. +debugwalk .hg +debugwalk beans/../.hg +debugwalk beans/../.hg/data +debugwalk beans/.hg # Don't know how to test absolute paths without always getting a false # error. -#hg debugwalk `pwd`/beans -#hg debugwalk `pwd`/.. -hg debugwalk glob:\* -hg debugwalk 're:.*[kb]$' -hg debugwalk path:beans/black -hg debugwalk path:beans//black -hg debugwalk relglob:Procyonidae -hg debugwalk relglob:Procyonidae/ fennel -hg debugwalk beans 'glob:beans/*' -hg debugwalk 'glob:mamm**' -hg debugwalk 'glob:mamm**' fennel -hg debugwalk 'glob:j*' -hg debugwalk NOEXIST +#debugwalk `pwd`/beans +#debugwalk `pwd`/.. +debugwalk glob:\* +debugwalk 're:.*[kb]$' +debugwalk path:beans/black +debugwalk path:beans//black +debugwalk relglob:Procyonidae +debugwalk relglob:Procyonidae/ fennel +debugwalk beans 'glob:beans/*' +debugwalk 'glob:mamm**' +debugwalk 'glob:mamm**' fennel +debugwalk 'glob:j*' +debugwalk NOEXIST mkfifo fifo -hg debugwalk fifo +debugwalk fifo rm fenugreek -hg debugwalk fenugreek +debugwalk fenugreek hg rm fenugreek -hg debugwalk fenugreek +debugwalk fenugreek touch new -hg debugwalk new +debugwalk new
--- a/tests/test-walk.out Sat Mar 10 23:00:51 2007 -0300 +++ b/tests/test-walk.out Sat Mar 10 23:00:52 2007 -0300 @@ -12,6 +12,7 @@ adding mammals/Procyonidae/coatimundi adding mammals/Procyonidae/raccoon adding mammals/skunk +hg debugwalk f beans/black beans/black f beans/borlotti beans/borlotti f beans/kidney beans/kidney @@ -26,6 +27,8 @@ f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon f mammals/skunk mammals/skunk + +hg debugwalk -I. f beans/black beans/black f beans/borlotti beans/borlotti f beans/kidney beans/kidney @@ -40,93 +43,170 @@ f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon f mammals/skunk mammals/skunk + +cd mammals + +hg debugwalk . f mammals/Procyonidae/cacomistle Procyonidae/cacomistle f mammals/Procyonidae/coatimundi Procyonidae/coatimundi f mammals/Procyonidae/raccoon Procyonidae/raccoon f mammals/skunk skunk + +hg debugwalk -I. f mammals/Procyonidae/cacomistle Procyonidae/cacomistle f mammals/Procyonidae/coatimundi Procyonidae/coatimundi f mammals/Procyonidae/raccoon Procyonidae/raccoon f mammals/skunk skunk + +hg debugwalk Procyonidae f mammals/Procyonidae/cacomistle Procyonidae/cacomistle f mammals/Procyonidae/coatimundi Procyonidae/coatimundi f mammals/Procyonidae/raccoon Procyonidae/raccoon + +cd Procyonidae + +hg debugwalk . f mammals/Procyonidae/cacomistle cacomistle f mammals/Procyonidae/coatimundi coatimundi f mammals/Procyonidae/raccoon raccoon + +hg debugwalk .. f mammals/Procyonidae/cacomistle cacomistle f mammals/Procyonidae/coatimundi coatimundi f mammals/Procyonidae/raccoon raccoon f mammals/skunk ../skunk + +cd .. + +hg debugwalk ../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 . f mammals/Procyonidae/cacomistle Procyonidae/cacomistle f mammals/Procyonidae/coatimundi Procyonidae/coatimundi f mammals/Procyonidae/raccoon Procyonidae/raccoon f mammals/skunk skunk + +hg debugwalk .hg .hg: No such file or directory + +hg debugwalk ../.hg abort: path contains illegal component: .hg + +cd .. + +hg debugwalk -Ibeans 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 glob:mammals/../beans/b* f beans/black beans/black f beans/borlotti beans/borlotti + +hg debugwalk -X*/Procyonidae mammals f mammals/skunk mammals/skunk + +hg debugwalk path:mammals f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon f mammals/skunk mammals/skunk + +hg debugwalk .. abort: .. not under root + +hg debugwalk beans/../.. abort: beans/../.. not under root + +hg debugwalk .hg abort: path contains illegal component: .hg + +hg debugwalk beans/../.hg abort: path contains illegal component: .hg + +hg debugwalk beans/../.hg/data abort: path contains illegal component: .hg/data + +hg debugwalk beans/.hg beans/.hg: No such file or directory + +hg debugwalk glob:* f fennel fennel f fenugreek fenugreek f fiddlehead fiddlehead f glob:glob glob:glob + +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 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon + +hg debugwalk relglob:Procyonidae/ fennel f fennel fennel exact f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon + +hg debugwalk beans glob: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 glob:mamm** f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon f mammals/skunk mammals/skunk + +hg debugwalk glob:mamm** fennel f fennel fennel exact f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon f mammals/skunk mammals/skunk + +hg debugwalk glob:j* + +hg debugwalk NOEXIST NOEXIST: No such file or directory + +hg debugwalk fifo fifo: unsupported file type (type is fifo) + +hg debugwalk fenugreek m fenugreek fenugreek exact + +hg debugwalk fenugreek m fenugreek fenugreek exact + +hg debugwalk new f new new exact +