2005-07-01 10:22:27 +04:00
|
|
|
#!/bin/sh
|
2005-06-15 05:30:56 +04:00
|
|
|
|
|
|
|
mkdir t
|
|
|
|
cd t
|
|
|
|
hg init
|
|
|
|
echo a > a
|
|
|
|
hg add a
|
2006-03-13 15:05:41 +03:00
|
|
|
hg commit -m "test" -d "1000000 0"
|
2005-06-15 05:30:56 +04:00
|
|
|
hg verify
|
|
|
|
hg parents
|
|
|
|
hg status
|
2006-05-09 01:19:05 +04:00
|
|
|
hg rollback
|
2005-06-15 05:30:56 +04:00
|
|
|
hg verify
|
|
|
|
hg parents
|
|
|
|
hg status
|
2008-01-08 00:26:12 +03:00
|
|
|
|
2008-02-09 21:39:01 +03:00
|
|
|
echo % Test issue 902
|
2008-01-08 00:26:12 +03:00
|
|
|
hg commit -m "test"
|
|
|
|
hg branch test
|
|
|
|
hg rollback
|
|
|
|
hg branch
|
2008-02-09 21:39:01 +03:00
|
|
|
|
|
|
|
echo % Test rollback of hg before issue 902 was fixed
|
|
|
|
hg commit -m "test"
|
|
|
|
hg branch test
|
|
|
|
rm .hg/undo.branch
|
|
|
|
hg rollback
|
|
|
|
hg branch
|