comparison tests/test-status @ 1624:d9e576e55d81

Added test for relative paths and all status flags for 'hg status'
author Thomas Arendsen Hein <thomas@intevation.de>
date Tue, 17 Jan 2006 16:00:55 +0100
parents
children 7544700fd931
comparison
equal deleted inserted replaced
1623:eef8ff46567a 1624:d9e576e55d81
1 #!/bin/sh
2
3 hg init repo1
4 cd repo1
5 mkdir a b a/1 b/1 b/2
6 touch in_root a/in_a b/in_b a/1/in_a_1 b/1/in_b_1 b/2/in_b_2
7 echo "hg status in repo root:"
8 hg status
9 echo "hg status . in repo root:"
10 hg status .
11 for dir in a b a/1 b/1 b/2; do
12 echo "hg status in $dir:"
13 hg status --cwd "$dir"
14 echo "hg status . in $dir:"
15 hg status --cwd "$dir" .
16 echo "hg status .. in $dir:"
17 hg status --cwd "$dir" ..
18 done
19 cd ..
20
21 hg init repo2
22 cd repo2
23 touch modified removed deleted ignored
24 echo "ignored" > .hgignore
25 hg ci -A -m 'initial checkin' -d "0 0"
26 sleep 1 # make sure mtime is changed
27 touch modified added unknown ignored
28 hg add added
29 hg remove removed
30 rm deleted
31 echo "hg status:"
32 hg status
33 echo "hg status modified added removed deleted unknown never-existed ignored:"
34 hg status modified added removed deleted unknown never-existed ignored