equal
deleted
inserted
replaced
1 #!/bin/sh |
|
2 |
|
3 hg init |
|
4 echo a > a |
|
5 hg add a |
|
6 hg commit -m "1" -d "1000000 0" |
|
7 hg status |
|
8 hg copy a b |
|
9 hg status |
|
10 hg sum |
|
11 hg --debug commit -m "2" -d "1000000 0" |
|
12 echo "we should see two history entries" |
|
13 hg history -v |
|
14 echo "we should see one log entry for a" |
|
15 hg log a |
|
16 echo "this should show a revision linked to changeset 0" |
|
17 hg debugindex .hg/store/data/a.i |
|
18 echo "we should see one log entry for b" |
|
19 hg log b |
|
20 echo "this should show a revision linked to changeset 1" |
|
21 hg debugindex .hg/store/data/b.i |
|
22 |
|
23 echo "this should show the rename information in the metadata" |
|
24 hg debugdata .hg/store/data/b.d 0 | head -3 | tail -2 |
|
25 |
|
26 $TESTDIR/md5sum.py .hg/store/data/b.i |
|
27 hg cat b > bsum |
|
28 $TESTDIR/md5sum.py bsum |
|
29 hg cat a > asum |
|
30 $TESTDIR/md5sum.py asum |
|
31 hg verify |
|