tests/test-undo
author mason@suse.com
Thu, 09 Feb 2006 17:18:43 -0600
changeset 1712 21dcf38e5d7d
parent 814 0902ffece4b4
child 1933 7544700fd931
permissions -rwxr-xr-x
Allow callers to pass in the dirstate lock in most localrepo.py funcs. This makes it possible to take the lock once and commit a large number of patches, without having to read and write the dirstate for each patch.

#!/bin/sh

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