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