equal
deleted
inserted
replaced
1 #!/bin/sh |
|
2 |
|
3 echo "[extensions]" >> $HGRCPATH |
|
4 echo "mq=" >> $HGRCPATH |
|
5 |
|
6 hg init a |
|
7 cd a |
|
8 echo a > a |
|
9 hg ci -Ama |
|
10 |
|
11 hg qnew a.patch |
|
12 echo a >> a |
|
13 hg qrefresh |
|
14 |
|
15 hg qnew b.patch |
|
16 echo b > b |
|
17 hg add b |
|
18 hg qrefresh |
|
19 |
|
20 hg qnew c.patch |
|
21 echo c > c |
|
22 hg add c |
|
23 hg qrefresh |
|
24 |
|
25 hg qgoto a.patch |
|
26 hg qgoto c.patch |
|
27 hg qgoto b.patch |
|
28 |
|
29 echo |
|
30 echo % Using index |
|
31 hg qgoto 0 |
|
32 hg qgoto 2 |
|
33 |
|
34 echo |
|
35 echo % No warnings when using index |
|
36 hg qnew bug314159 |
|
37 echo d >> c |
|
38 hg qrefresh |
|
39 hg qnew bug141421 |
|
40 echo e >> c |
|
41 hg qrefresh |
|
42 hg qgoto 1 |
|
43 hg qgoto 3 |
|
44 |
|
45 echo |
|
46 echo % Detect ambiguous non-index |
|
47 hg qgoto 14 |
|
48 |
|
49 exit 0 |
|