Show More
@@ -1,44 +1,46 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
|
3 | "$TESTDIR/hghave" no-outer-repo || exit 80 | |||
|
4 | ||||
3 | echo % no repo |
|
5 | echo % no repo | |
4 | hg id |
|
6 | hg id | |
5 |
|
7 | |||
6 | echo % create repo |
|
8 | echo % create repo | |
7 | hg init test |
|
9 | hg init test | |
8 | cd test |
|
10 | cd test | |
9 | echo a > a |
|
11 | echo a > a | |
10 | hg ci -Ama |
|
12 | hg ci -Ama | |
11 |
|
13 | |||
12 | echo % basic id usage |
|
14 | echo % basic id usage | |
13 | hg id |
|
15 | hg id | |
14 | hg id --debug |
|
16 | hg id --debug | |
15 | hg id -q |
|
17 | hg id -q | |
16 | hg id -v |
|
18 | hg id -v | |
17 |
|
19 | |||
18 | echo % with options |
|
20 | echo % with options | |
19 | hg id -r. |
|
21 | hg id -r. | |
20 | hg id -n |
|
22 | hg id -n | |
21 | hg id -t |
|
23 | hg id -t | |
22 | hg id -b |
|
24 | hg id -b | |
23 | hg id -i |
|
25 | hg id -i | |
24 | hg id -n -t -b -i |
|
26 | hg id -n -t -b -i | |
25 |
|
27 | |||
26 | echo % with modifications |
|
28 | echo % with modifications | |
27 | echo b > a |
|
29 | echo b > a | |
28 | hg id -n -t -b -i |
|
30 | hg id -n -t -b -i | |
29 |
|
31 | |||
30 | echo % other local repo |
|
32 | echo % other local repo | |
31 | cd .. |
|
33 | cd .. | |
32 | hg -R test id |
|
34 | hg -R test id | |
33 | hg id test |
|
35 | hg id test | |
34 |
|
36 | |||
35 | echo % with remote http repo |
|
37 | echo % with remote http repo | |
36 | cd test |
|
38 | cd test | |
37 | hg serve -p $HGPORT1 -d --pid-file=hg.pid |
|
39 | hg serve -p $HGPORT1 -d --pid-file=hg.pid | |
38 | cat hg.pid >> $DAEMON_PIDS |
|
40 | cat hg.pid >> $DAEMON_PIDS | |
39 | hg id http://localhost:$HGPORT1/ |
|
41 | hg id http://localhost:$HGPORT1/ | |
40 |
|
42 | |||
41 | echo % remote with tags? |
|
43 | echo % remote with tags? | |
42 | hg id -t http://localhost:$HGPORT1/ |
|
44 | hg id -t http://localhost:$HGPORT1/ | |
43 |
|
45 | |||
44 | true # ends with util.Abort -> returns 255 |
|
46 | true # ends with util.Abort -> returns 255 |
General Comments 0
You need to be logged in to leave comments.
Login now