tests/test-rollback
author Matt Mackall <mpm@selenic.com>
Sat, 10 Jan 2009 18:02:38 -0600
changeset 7632 9626819b2e3d
parent 6058 88b4d726332a
child 9934 720f70b720d3
permissions -rwxr-xr-x
refactor version code - simplify version detection code - move detection code into setup.py - move version reading function into util.py - drop version.py code This makes hg more closely follow its own recommendation of how to deal with versioning your builds: use hg id in your build script.

#!/bin/sh

mkdir t
cd t
hg init
echo a > a
hg add a
hg commit -m "test" -d "1000000 0"
hg verify
hg parents
hg status
hg rollback
hg verify
hg parents
hg status

echo % Test issue 902
hg commit -m "test"
hg branch test
hg rollback
hg branch

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