Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-copy @ 1948:ebe273a16048
merge with crew/templates
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Mon, 13 Mar 2006 23:38:14 +0100 |
parents | 7544700fd931 |
children | b72562060e45 |
comparison
equal
deleted
inserted
replaced
1946:9fee186f7f0d | 1948:ebe273a16048 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 hg init | 3 hg init |
4 echo a > a | 4 echo a > a |
5 hg add a | 5 hg add a |
6 hg commit -m "1" -d "0 0" | 6 hg commit -m "1" -d "1000000 0" |
7 hg status | 7 hg status |
8 hg copy a b | 8 hg copy a b |
9 hg status | 9 hg status |
10 hg --debug commit -m "2" -d "0 0" | 10 hg --debug commit -m "2" -d "1000000 0" |
11 echo "we should see two history entries" | 11 echo "we should see two history entries" |
12 hg history -v | 12 hg history -v |
13 echo "we should see one log entry for a" | 13 echo "we should see one log entry for a" |
14 hg log a | 14 hg log a |
15 echo "this should show a revision linked to changeset 0" | 15 echo "this should show a revision linked to changeset 0" |
18 hg log b | 18 hg log b |
19 echo "this should show a revision linked to changeset 1" | 19 echo "this should show a revision linked to changeset 1" |
20 hg debugindex .hg/data/b.i | 20 hg debugindex .hg/data/b.i |
21 | 21 |
22 echo "this should show the rename information in the metadata" | 22 echo "this should show the rename information in the metadata" |
23 hg debugdata .hg/data/b.d 0 | head -n 3 | tail -n 2 | 23 hg debugdata .hg/data/b.d 0 | head -3 | tail -2 |
24 | 24 |
25 md5sum .hg/data/b.d | 25 $TESTDIR/md5sum.py .hg/data/b.d |
26 hg cat b > bsum | 26 hg cat b > bsum |
27 md5sum bsum | 27 $TESTDIR/md5sum.py bsum |
28 hg cat a > asum | 28 hg cat a > asum |
29 md5sum asum | 29 $TESTDIR/md5sum.py asum |
30 hg verify | 30 hg verify |