test-walk
55 lines
| 1.1 KiB
| text/plain
|
TextLexer
/ tests / test-walk
Bryan O'Sullivan
|
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 | ||||
hg commit -m "commit #0" -d "0 0" | ||||
hg debugwalk | ||||
cd mammals | ||||
Benoit Boissinot
|
r1568 | hg debugwalk . | ||
Bryan O'Sullivan
|
r889 | hg debugwalk Procyonidae | ||
cd Procyonidae | ||||
Benoit Boissinot
|
r1568 | hg debugwalk . | ||
Bryan O'Sullivan
|
r889 | hg debugwalk .. | ||
cd .. | ||||
hg debugwalk ../beans | ||||
Benoit Boissinot
|
r1568 | hg debugwalk . | ||
Bryan O'Sullivan
|
r889 | cd .. | ||
hg debugwalk -Ibeans | ||||
Benoit Boissinot
|
r1413 | hg debugwalk 'glob:mammals/../beans/b*' | ||
Bryan O'Sullivan
|
r889 | hg debugwalk '-X*/Procyonidae' mammals | ||
hg debugwalk path:mammals | ||||
hg debugwalk .. | ||||
hg debugwalk beans/../.. | ||||
Bryan O'Sullivan
|
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
|
r889 | hg debugwalk glob:\* | ||
hg debugwalk 're:.*[kb]$' | ||||
hg debugwalk path:beans/black | ||||
Benoit Boissinot
|
r1413 | hg debugwalk beans 'glob:beans/*' | ||
hg debugwalk 'glob:j*' | ||||
Bryan O'Sullivan
|
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 | ||||