Show More
@@ -1,41 +1,43 b'' | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | hg init |
|
4 | 4 | echo foo > foo |
|
5 | 5 | hg add foo |
|
6 | 6 | hg commit -m1 -d"0 0" |
|
7 | 7 | |
|
8 | 8 | echo "# should show copy" |
|
9 | 9 | cp foo bar |
|
10 | 10 | hg copy foo bar |
|
11 | hg debugstate | |
|
11 | hg debugstate|grep ^copy | |
|
12 | 12 | |
|
13 | 13 | echo "# shouldn't show copy" |
|
14 | 14 | hg commit -m2 -d"0 0" |
|
15 | hg debugstate | |
|
15 | hg debugstate|grep ^copy | |
|
16 | 16 | |
|
17 | 17 | echo "# should match" |
|
18 | 18 | hg debugindex .hg/data/foo.i |
|
19 | 19 | hg debugrename bar |
|
20 | 20 | |
|
21 | 21 | echo bleah > foo |
|
22 | 22 | echo quux > bar |
|
23 | 23 | hg commit -m3 -d"0 0" |
|
24 | 24 | |
|
25 | 25 | echo "# should not be renamed" |
|
26 | 26 | hg debugrename bar |
|
27 | 27 | |
|
28 | 28 | cp foo bar |
|
29 | 29 | hg copy foo bar |
|
30 | 30 | echo "# should show copy" |
|
31 | hg debugstate | |
|
31 | hg debugstate|grep ^copy | |
|
32 | 32 | hg commit -m3 -d"0 0" |
|
33 | 33 | |
|
34 | 34 | echo "# should show no parents for tip" |
|
35 | 35 | hg debugindex .hg/data/bar.i |
|
36 | 36 | echo "# should match" |
|
37 | 37 | hg debugindex .hg/data/foo.i |
|
38 | 38 | hg debugrename bar |
|
39 | 39 | |
|
40 | 40 | echo "# should show no copies" |
|
41 | hg debugstate No newline at end of file | |
|
41 | hg debugstate|grep ^copy | |
|
42 | ||
|
43 | exit 0 |
@@ -1,34 +1,22 b'' | |||
|
1 | 1 | # should show copy |
|
2 | a 644 4 08/28/05 05:00:19 bar | |
|
3 | n 644 4 08/28/05 05:00:19 foo | |
|
4 | ||
|
5 | foo -> bar | |
|
2 | copy: foo -> bar | |
|
6 | 3 | # shouldn't show copy |
|
7 | n 644 4 08/28/05 05:00:19 bar | |
|
8 | n 644 4 08/28/05 05:00:19 foo | |
|
9 | ||
|
10 | 4 | # should match |
|
11 | 5 | rev offset length base linkrev nodeid p1 p2 |
|
12 | 6 | 0 0 5 0 0 2ed2a3912a0b 000000000000 000000000000 |
|
13 | 7 | renamed from foo:2ed2a3912a0b24502043eae84ee4b279c18b90dd |
|
14 | 8 | # should not be renamed |
|
15 | 9 | not renamed |
|
16 | 10 | # should show copy |
|
17 | n 644 5 08/28/05 05:00:19 bar | |
|
18 | n 644 6 08/28/05 05:00:19 foo | |
|
19 | ||
|
20 | foo -> bar | |
|
11 | copy: foo -> bar | |
|
21 | 12 | # should show no parents for tip |
|
22 | 13 | rev offset length base linkrev nodeid p1 p2 |
|
23 | 14 | 0 0 69 0 1 6ca237634e1f 000000000000 000000000000 |
|
24 | 15 | 1 69 6 1 2 7a1ff8e75f5b 6ca237634e1f 000000000000 |
|
25 | 16 | 2 75 82 1 3 243dfe60f3d9 000000000000 000000000000 |
|
26 | 17 | # should match |
|
27 | 18 | rev offset length base linkrev nodeid p1 p2 |
|
28 | 19 | 0 0 5 0 0 2ed2a3912a0b 000000000000 000000000000 |
|
29 | 20 | 1 5 7 1 2 dd12c926cf16 2ed2a3912a0b 000000000000 |
|
30 | 21 | renamed from foo:dd12c926cf165e3eb4cf87b084955cb617221c17 |
|
31 | 22 | # should show no copies |
|
32 | n 644 6 08/28/05 05:00:19 bar | |
|
33 | n 644 6 08/28/05 05:00:19 foo | |
|
34 |
General Comments 0
You need to be logged in to leave comments.
Login now