Show More
@@ -0,0 +1,62 b'' | |||
|
1 | #!/bin/sh | |
|
2 | ||
|
3 | # test mq hardlinking | |
|
4 | echo "[extensions]" >> $HGRCPATH | |
|
5 | echo "mq=" >> $HGRCPATH | |
|
6 | ||
|
7 | echo % init | |
|
8 | hg init a | |
|
9 | cd a | |
|
10 | ||
|
11 | hg qimport -n foo - << EOF | |
|
12 | diff -r 2588a8b53d66 a | |
|
13 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
|
14 | +++ b/a Wed Jul 23 15:54:29 2008 +0200 | |
|
15 | @@ -0,0 +1,1 @@ | |
|
16 | +a | |
|
17 | EOF | |
|
18 | ||
|
19 | hg qpush | |
|
20 | ||
|
21 | cd .. | |
|
22 | cp -al a b | |
|
23 | cd b | |
|
24 | ||
|
25 | hg qimport -n bar - << EOF | |
|
26 | diff -r 2588a8b53d66 a | |
|
27 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
|
28 | +++ b/b Wed Jul 23 15:54:29 2008 +0200 | |
|
29 | @@ -0,0 +1,1 @@ | |
|
30 | +b | |
|
31 | EOF | |
|
32 | ||
|
33 | hg qpush | |
|
34 | ||
|
35 | cat .hg/patches/status | |
|
36 | echo % | |
|
37 | cat .hg/patches/series | |
|
38 | echo %%% | |
|
39 | cat ../a/.hg/patches/status | |
|
40 | echo % | |
|
41 | cat ../a/.hg/patches/series | |
|
42 | ||
|
43 | # test tags hardlinking | |
|
44 | hg qdel -r qbase:qtip | |
|
45 | ||
|
46 | hg tag -l lfoo | |
|
47 | hg tag foo | |
|
48 | ||
|
49 | cd .. | |
|
50 | cp -al b c | |
|
51 | cd c | |
|
52 | ||
|
53 | hg tag -l -r 0 lbar | |
|
54 | hg tag -r 0 bar | |
|
55 | echo %%% | |
|
56 | cat .hgtags | |
|
57 | echo % | |
|
58 | cat .hg/localtags | |
|
59 | echo %%% | |
|
60 | cat ../b/.hgtags | |
|
61 | echo % | |
|
62 | cat ../b/.hg/localtags |
@@ -0,0 +1,26 b'' | |||
|
1 | % init | |
|
2 | adding foo to series file | |
|
3 | applying foo | |
|
4 | Now at: foo | |
|
5 | adding bar to series file | |
|
6 | applying bar | |
|
7 | Now at: bar | |
|
8 | 9373c9d7b61ff62edc4685b85115a54aa92cd6fa:foo | |
|
9 | 6dd08b80614ae7ed7f9224fb089e90deb999ae76:bar | |
|
10 | % | |
|
11 | foo | |
|
12 | bar | |
|
13 | %%% | |
|
14 | 9373c9d7b61ff62edc4685b85115a54aa92cd6fa:foo | |
|
15 | % | |
|
16 | foo | |
|
17 | %%% | |
|
18 | 6dd08b80614ae7ed7f9224fb089e90deb999ae76 foo | |
|
19 | 9373c9d7b61ff62edc4685b85115a54aa92cd6fa bar | |
|
20 | % | |
|
21 | 6dd08b80614ae7ed7f9224fb089e90deb999ae76 lfoo | |
|
22 | 9373c9d7b61ff62edc4685b85115a54aa92cd6fa lbar | |
|
23 | %%% | |
|
24 | 6dd08b80614ae7ed7f9224fb089e90deb999ae76 foo | |
|
25 | % | |
|
26 | 6dd08b80614ae7ed7f9224fb089e90deb999ae76 lfoo |
General Comments 0
You need to be logged in to leave comments.
Login now