Show More
@@ -1,31 +1,91 b'' | |||||
1 | #!/bin/sh |
|
1 | $ hg init | |
|
2 | $ echo a > a | |||
|
3 | $ hg add a | |||
|
4 | $ hg commit -m "1" -d "1000000 0" | |||
|
5 | $ hg status | |||
|
6 | $ hg copy a b | |||
|
7 | $ hg status | |||
|
8 | A b | |||
|
9 | $ hg sum | |||
|
10 | parent: 0:33aaa84a386b tip | |||
|
11 | 1 | |||
|
12 | branch: default | |||
|
13 | commit: 1 copied | |||
|
14 | update: (current) | |||
|
15 | $ hg --debug commit -m "2" -d "1000000 0" | |||
|
16 | b | |||
|
17 | b: copy a:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 | |||
|
18 | committed changeset 1:76973b01f66a012648546c979ea4c41de9e7d8cd | |||
|
19 | ||||
|
20 | we should see two history entries | |||
|
21 | ||||
|
22 | $ hg history -v | |||
|
23 | changeset: 1:76973b01f66a | |||
|
24 | tag: tip | |||
|
25 | user: test | |||
|
26 | date: Mon Jan 12 13:46:40 1970 +0000 | |||
|
27 | files: b | |||
|
28 | description: | |||
|
29 | 2 | |||
|
30 | ||||
|
31 | ||||
|
32 | changeset: 0:33aaa84a386b | |||
|
33 | user: test | |||
|
34 | date: Mon Jan 12 13:46:40 1970 +0000 | |||
|
35 | files: a | |||
|
36 | description: | |||
|
37 | 1 | |||
|
38 | ||||
|
39 | ||||
|
40 | ||||
|
41 | we should see one log entry for a | |||
2 |
|
42 | |||
3 | hg init |
|
43 | $ hg log a | |
4 | echo a > a |
|
44 | changeset: 0:33aaa84a386b | |
5 | hg add a |
|
45 | user: test | |
6 | hg commit -m "1" -d "1000000 0" |
|
46 | date: Mon Jan 12 13:46:40 1970 +0000 | |
7 | hg status |
|
47 | summary: 1 | |
8 | hg copy a b |
|
48 | ||
9 | hg status |
|
49 | ||
10 | hg sum |
|
50 | this should show a revision linked to changeset 0 | |
11 | hg --debug commit -m "2" -d "1000000 0" |
|
51 | ||
12 | echo "we should see two history entries" |
|
52 | $ hg debugindex .hg/store/data/a.i | |
13 | hg history -v |
|
53 | rev offset length base linkrev nodeid p1 p2 | |
14 | echo "we should see one log entry for a" |
|
54 | 0 0 3 0 0 b789fdd96dc2 000000000000 000000000000 | |
15 | hg log a |
|
55 | ||
16 | echo "this should show a revision linked to changeset 0" |
|
56 | we should see one log entry for b | |
17 | hg debugindex .hg/store/data/a.i |
|
57 | ||
18 | echo "we should see one log entry for b" |
|
58 | $ hg log b | |
19 | hg log b |
|
59 | changeset: 1:76973b01f66a | |
20 | echo "this should show a revision linked to changeset 1" |
|
60 | tag: tip | |
21 | hg debugindex .hg/store/data/b.i |
|
61 | user: test | |
|
62 | date: Mon Jan 12 13:46:40 1970 +0000 | |||
|
63 | summary: 2 | |||
|
64 | ||||
|
65 | ||||
|
66 | this should show a revision linked to changeset 1 | |||
22 |
|
67 | |||
23 | echo "this should show the rename information in the metadata" |
|
68 | $ hg debugindex .hg/store/data/b.i | |
24 | hg debugdata .hg/store/data/b.d 0 | head -3 | tail -2 |
|
69 | rev offset length base linkrev nodeid p1 p2 | |
|
70 | 0 0 65 0 1 37d9b5d994ea 000000000000 000000000000 | |||
|
71 | ||||
|
72 | this should show the rename information in the metadata | |||
|
73 | ||||
|
74 | $ hg debugdata .hg/store/data/b.d 0 | head -3 | tail -2 | |||
|
75 | copy: a | |||
|
76 | copyrev: b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 | |||
25 |
|
77 | |||
26 | $TESTDIR/md5sum.py .hg/store/data/b.i |
|
78 | $ $TESTDIR/md5sum.py .hg/store/data/b.i | |
27 | hg cat b > bsum |
|
79 | 4999f120a3b88713bbefddd195cf5133 .hg/store/data/b.i | |
28 | $TESTDIR/md5sum.py bsum |
|
80 | $ hg cat b > bsum | |
29 | hg cat a > asum |
|
81 | $ $TESTDIR/md5sum.py bsum | |
30 | $TESTDIR/md5sum.py asum |
|
82 | 60b725f10c9c85c70d97880dfe8191b3 bsum | |
31 | hg verify |
|
83 | $ hg cat a > asum | |
|
84 | $ $TESTDIR/md5sum.py asum | |||
|
85 | 60b725f10c9c85c70d97880dfe8191b3 asum | |||
|
86 | $ hg verify | |||
|
87 | checking changesets | |||
|
88 | checking manifests | |||
|
89 | crosschecking files in changesets and manifests | |||
|
90 | checking files | |||
|
91 | 2 files, 2 changesets, 2 total revisions |
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