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