##// END OF EJS Templates
tests: unify test-identify
Nicolas Dumazet -
r11796:141e2e96 default
parent child Browse files
Show More
@@ -1,46 +1,69 b''
1 #!/bin/sh
1 $ "$TESTDIR/hghave" no-outer-repo || exit 80
2
3 no repo
2
4
3 "$TESTDIR/hghave" no-outer-repo || exit 80
5 $ hg id
6 abort: There is no Mercurial repository here (.hg not found)
4
7
5 echo % no repo
8 create repo
6 hg id
7
9
8 echo % create repo
10 $ hg init test
9 hg init test
11 $ cd test
10 cd test
12 $ echo a > a
11 echo a > a
13 $ hg ci -Ama
12 hg ci -Ama
14 adding a
15
16 basic id usage
13
17
14 echo % basic id usage
18 $ hg id
15 hg id
19 cb9a9f314b8b tip
16 hg id --debug
20 $ hg id --debug
17 hg id -q
21 cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b tip
18 hg id -v
22 $ hg id -q
23 cb9a9f314b8b
24 $ hg id -v
25 cb9a9f314b8b tip
26
27 with options
19
28
20 echo % with options
29 $ hg id -r.
21 hg id -r.
30 cb9a9f314b8b tip
22 hg id -n
31 $ hg id -n
23 hg id -t
32 0
24 hg id -b
33 $ hg id -t
25 hg id -i
34 tip
26 hg id -n -t -b -i
35 $ hg id -b
36 default
37 $ hg id -i
38 cb9a9f314b8b
39 $ hg id -n -t -b -i
40 cb9a9f314b8b 0 default tip
27
41
28 echo % with modifications
42 with modifications
29 echo b > a
43
30 hg id -n -t -b -i
44 $ echo b > a
45 $ hg id -n -t -b -i
46 cb9a9f314b8b+ 0+ default tip
47
48 other local repo
31
49
32 echo % other local repo
50 $ cd ..
33 cd ..
51 $ hg -R test id
34 hg -R test id
52 cb9a9f314b8b+ tip
35 hg id test
53 $ hg id test
54 cb9a9f314b8b+ tip
55
56 with remote http repo
36
57
37 echo % with remote http repo
58 $ cd test
38 cd test
59 $ hg serve -p $HGPORT1 -d --pid-file=hg.pid
39 hg serve -p $HGPORT1 -d --pid-file=hg.pid
60 $ cat hg.pid >> $DAEMON_PIDS
40 cat hg.pid >> $DAEMON_PIDS
61 $ hg id http://localhost:$HGPORT1/
41 hg id http://localhost:$HGPORT1/
62 cb9a9f314b8b
42
63
43 echo % remote with tags?
64 remote with tags?
44 hg id -t http://localhost:$HGPORT1/
45
65
46 true # ends with util.Abort -> returns 255
66 $ hg id -t http://localhost:$HGPORT1/
67 abort: can't query remote revision number, branch, or tags
68
69 $ true # ends with util.Abort -> returns 255
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now