##// END OF EJS Templates
fix the cat command...
fix the cat command - improve localrepo.walk when passed a node - make the differents walk commands in commands.py accept a node - change commands.cat to walk over a revision - add a test

File last commit:

r1252:94f38724 default
r1582:63799b01 default
Show More
test-copy
30 lines | 657 B | text/plain | TextLexer
Thomas Arendsen Hein
Remove bashisms and use /bin/sh instead of /bin/bash....
r544 #!/bin/sh
mpm@selenic.com
Add hg copy...
r363
hg init
echo a > a
hg add a
mpm@selenic.com
Update tests to use commit -m and default -u...
r749 hg commit -m "1" -d "0 0"
mpm@selenic.com
Add hg copy...
r363 hg status
hg copy a b
hg status
mpm@selenic.com
Update tests to use commit -m and default -u...
r749 hg --debug commit -m "2" -d "0 0"
mpm@selenic.com
Update tests
r1043 echo "we should see two history entries"
hg history -v
echo "we should see one log entry for a"
mpm@selenic.com
Add hg copy...
r363 hg log a
mpm@selenic.com
Update tests
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"
hg debugdata .hg/data/b.d 0 | head -n 3 | tail -n 2
Thomas Arendsen Hein
Don't use 'set -x', fix exports, sed and hexdump usage for Solaris.
r800 md5sum .hg/data/b.d
mpm@selenic.com
Fix pipe timing for copy test...
r462 hg cat b > bsum
md5sum bsum
hg cat a > asum
md5sum asum
mpm@selenic.com
Add hg copy...
r363 hg verify