2005-07-01 10:22:27 +04:00
|
|
|
#!/bin/sh
|
2005-06-16 03:57:07 +04:00
|
|
|
|
|
|
|
hg init
|
|
|
|
echo a > a
|
|
|
|
hg add a
|
2006-03-13 15:05:41 +03:00
|
|
|
hg commit -m "1" -d "1000000 0"
|
2005-06-16 03:57:07 +04:00
|
|
|
hg status
|
|
|
|
hg copy a b
|
|
|
|
hg status
|
2006-03-13 15:05:41 +03:00
|
|
|
hg --debug commit -m "2" -d "1000000 0"
|
2005-08-25 06:19:35 +04:00
|
|
|
echo "we should see two history entries"
|
|
|
|
hg history -v
|
|
|
|
echo "we should see one log entry for a"
|
2005-06-16 03:57:07 +04:00
|
|
|
hg log a
|
2005-08-25 06:19:35 +04:00
|
|
|
echo "this should show a revision linked to changeset 0"
|
2006-12-01 15:34:09 +03:00
|
|
|
hg debugindex .hg/store/data/a.i
|
2005-08-25 06:19:35 +04:00
|
|
|
echo "we should see one log entry for b"
|
|
|
|
hg log b
|
|
|
|
echo "this should show a revision linked to changeset 1"
|
2006-12-01 15:34:09 +03:00
|
|
|
hg debugindex .hg/store/data/b.i
|
2005-08-25 06:19:35 +04:00
|
|
|
|
|
|
|
echo "this should show the rename information in the metadata"
|
2006-12-01 15:34:09 +03:00
|
|
|
hg debugdata .hg/store/data/b.d 0 | head -3 | tail -2
|
2005-08-25 06:19:35 +04:00
|
|
|
|
2006-12-01 15:34:09 +03:00
|
|
|
$TESTDIR/md5sum.py .hg/store/data/b.i
|
2005-06-25 11:00:19 +04:00
|
|
|
hg cat b > bsum
|
2006-02-22 00:23:51 +03:00
|
|
|
$TESTDIR/md5sum.py bsum
|
2005-06-25 11:00:19 +04:00
|
|
|
hg cat a > asum
|
2006-02-22 00:23:51 +03:00
|
|
|
$TESTDIR/md5sum.py asum
|
2005-06-16 03:57:07 +04:00
|
|
|
hg verify
|