comparison tests/test-walk @ 889:0a06d9d373c3

Add unit tests for walk code.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri, 12 Aug 2005 16:10:09 -0800
parents
children 391de0bcc722 36c991554ebb
comparison
equal deleted inserted replaced
888:e7a943e8c52b 889:0a06d9d373c3
1 #!/bin/sh
2
3 mkdir t
4 cd t
5 hg init
6 mkdir -p beans
7 for b in kidney navy turtle borlotti black pinto; do
8 echo $b > beans/$b
9 done
10 mkdir -p mammals/Procyonidae
11 for m in cacomistle coatimundi raccoon; do
12 echo $m > mammals/Procyonidae/$m
13 done
14 echo skunk > mammals/skunk
15 echo fennel > fennel
16 echo fenugreek > fenugreek
17 echo fiddlehead > fiddlehead
18 echo glob:glob > glob:glob
19 hg addremove
20 hg commit -m "commit #0" -d "0 0"
21 hg debugwalk
22 cd mammals
23 hg debugwalk
24 hg debugwalk Procyonidae
25 cd Procyonidae
26 hg debugwalk
27 hg debugwalk ..
28 cd ..
29 hg debugwalk ../beans
30 hg debugwalk
31 cd ..
32 hg debugwalk -Ibeans
33 hg debugwalk 'mammals/../beans/b*'
34 hg debugwalk '-X*/Procyonidae' mammals
35 hg debugwalk path:mammals
36 hg debugwalk ..
37 hg debugwalk beans/../..
38 hg debugwalk `pwd`/beans
39 hg debugwalk `pwd`/..
40 hg debugwalk glob:\*
41 hg debugwalk 're:.*[kb]$'
42 hg debugwalk path:beans/black
43 hg debugwalk beans 'beans/*'
44 hg debugwalk 'j*'
45 hg debugwalk NOEXIST
46 mkfifo fifo
47 hg debugwalk fifo
48 rm fenugreek
49 hg debugwalk fenugreek
50 hg rm fenugreek
51 hg debugwalk fenugreek
52 touch new
53 hg debugwalk new