tests/test-rebuildstate
author Greg Ward <greg-hg@gerg.ca>
Sun, 12 Jul 2009 22:33:00 -0400
changeset 9121 a85a3d398cc3
parent 6344 ffeb926d57ce
permissions -rwxr-xr-x
test-fetch: fix non-portable sed regex. (s/...\+/.../ appears to be a GNU-ism: this test broke on OS X and NetBSD. Changing \+ to * fixes it, although that is a slightly less strict regex.)

#!/bin/sh
# basic test for hg debugrebuildstate

hg init repo
cd repo

touch foo bar
hg ci -Am 'add foo bar'

touch baz
hg add baz
hg rm bar

hg debugrebuildstate
echo '% state dump after'
hg debugstate --nodates | sort
echo '% status'
hg st -A