comparison tests/test-identify @ 7757:af6a63438a8a

identify: have consistent output for local repositories Also, add some extensive testing for it (hardly any in the suite so far).
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 13 Feb 2009 11:32:33 +0100
parents
children 50baf8215942
comparison
equal deleted inserted replaced
7756:db6a03225177 7757:af6a63438a8a
1 #!/bin/sh
2
3 echo % no repo
4 hg id
5
6 echo % create repo
7 hg init test
8 cd test
9 echo a > a
10 hg ci -Ama
11
12 echo % basic id usage
13 hg id
14 hg id --debug
15 hg id -q
16 hg id -v
17
18 echo % with options
19 hg id -r.
20 hg id -n
21 hg id -t
22 hg id -b
23 hg id -i
24 hg id -n -t -b -i
25
26 echo % with modifications
27 echo b > a
28 hg id -n -t -b -i
29
30 echo % other local repo
31 cd ..
32 hg -R test id
33 hg id test
34
35 echo % with remote http repo
36 cd test
37 hg serve -p $HGPORT1 -d --pid-file=hg.pid
38 cat hg.pid >> $DAEMON_PIDS
39 hg id http://localhost:$HGPORT1/
40
41 echo % remote with tags?
42 hg id -t http://localhost:$HGPORT1/