test-copy
30 lines
| 725 B
| text/plain
|
TextLexer
/ tests / test-copy
|
r544 | #!/bin/sh | ||
|
r363 | |||
hg init | ||||
echo a > a | ||||
hg add a | ||||
|
r1933 | hg commit -m "1" -d "1000000 0" | ||
|
r363 | hg status | ||
hg copy a b | ||||
hg status | ||||
|
r1933 | hg --debug commit -m "2" -d "1000000 0" | ||
|
r1043 | echo "we should see two history entries" | ||
hg history -v | ||||
echo "we should see one log entry for a" | ||||
|
r363 | hg log a | ||
|
r1043 | echo "this should show a revision linked to changeset 0" | ||
|
r3853 | hg debugindex .hg/store/data/a.i | ||
|
r1043 | echo "we should see one log entry for b" | ||
hg log b | ||||
echo "this should show a revision linked to changeset 1" | ||||
|
r3853 | hg debugindex .hg/store/data/b.i | ||
|
r1043 | |||
echo "this should show the rename information in the metadata" | ||||
|
r3853 | hg debugdata .hg/store/data/b.d 0 | head -3 | tail -2 | ||
|
r1043 | |||
|
r3853 | $TESTDIR/md5sum.py .hg/store/data/b.i | ||
|
r462 | hg cat b > bsum | ||
|
r1923 | $TESTDIR/md5sum.py bsum | ||
|
r462 | hg cat a > asum | ||
|
r1923 | $TESTDIR/md5sum.py asum | ||
|
r363 | hg verify | ||