##// END OF EJS Templates
Add a pointer to "hg -v help" to the bottom of hg help {,cmd} output...
Add a pointer to "hg -v help" to the bottom of hg help {,cmd} output This should make it easier to discover global options. As a bonus, they are no longer displayed by something like a hg -v help dates

File last commit:

r4309:d4f0405f merge default
r4315:bc6f5a1d default
Show More
test-walk
67 lines | 1.4 KiB | text/plain | TextLexer
Bryan O'Sullivan
Add unit tests for walk code.
r889 #!/bin/sh
mkdir t
cd t
hg init
mkdir -p beans
for b in kidney navy turtle borlotti black pinto; do
echo $b > beans/$b
done
mkdir -p mammals/Procyonidae
for m in cacomistle coatimundi raccoon; do
echo $m > mammals/Procyonidae/$m
done
echo skunk > mammals/skunk
echo fennel > fennel
echo fenugreek > fenugreek
echo fiddlehead > fiddlehead
echo glob:glob > glob:glob
hg addremove
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "commit #0" -d "1000000 0"
Bryan O'Sullivan
Add unit tests for walk code.
r889 hg debugwalk
cd mammals
Benoit Boissinot
make all commands be repo-wide by default...
r1568 hg debugwalk .
Bryan O'Sullivan
Add unit tests for walk code.
r889 hg debugwalk Procyonidae
cd Procyonidae
Benoit Boissinot
make all commands be repo-wide by default...
r1568 hg debugwalk .
Bryan O'Sullivan
Add unit tests for walk code.
r889 hg debugwalk ..
cd ..
hg debugwalk ../beans
Benoit Boissinot
make all commands be repo-wide by default...
r1568 hg debugwalk .
Thomas Arendsen Hein
Enable path validation for copy, rename, debugwalk and other canonpath users....
r1976 hg debugwalk .hg
hg debugwalk ../.hg
Bryan O'Sullivan
Add unit tests for walk code.
r889 cd ..
hg debugwalk -Ibeans
Benoit Boissinot
Do not use 'glob' expansion by default on OS != 'nt'
r1413 hg debugwalk 'glob:mammals/../beans/b*'
Bryan O'Sullivan
Add unit tests for walk code.
r889 hg debugwalk '-X*/Procyonidae' mammals
hg debugwalk path:mammals
hg debugwalk ..
hg debugwalk beans/../..
Thomas Arendsen Hein
Enable path validation for copy, rename, debugwalk and other canonpath users....
r1976 hg debugwalk .hg
hg debugwalk beans/../.hg
hg debugwalk beans/../.hg/data
hg debugwalk beans/.hg
Bryan O'Sullivan
Turn off testing of absolute paths for now....
r893 # Don't know how to test absolute paths without always getting a false
# error.
#hg debugwalk `pwd`/beans
#hg debugwalk `pwd`/..
Bryan O'Sullivan
Add unit tests for walk code.
r889 hg debugwalk glob:\*
hg debugwalk 're:.*[kb]$'
hg debugwalk path:beans/black
Benoit Boissinot
Do not use 'glob' expansion by default on OS != 'nt'
r1413 hg debugwalk beans 'glob:beans/*'
hg debugwalk 'glob:j*'
Bryan O'Sullivan
Add unit tests for walk code.
r889 hg debugwalk NOEXIST
mkfifo fifo
hg debugwalk fifo
rm fenugreek
hg debugwalk fenugreek
hg rm fenugreek
hg debugwalk fenugreek
touch new
hg debugwalk new
Alexis S. L. Carvalho
Fix handling of paths when run outside the repo....
r4230 cd ..
hg -R t debugwalk t/mammals/skunk
mkdir t2
cd t2
hg -R ../t debugwalk ../t/mammals/skunk
hg --cwd ../t debugwalk mammals/skunk