tests/test-rebuildstate
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
Fri, 15 Feb 2008 23:38:18 -0200
changeset 6127 25c372e8f261
parent 5858 e7ed5d07cc4c
child 6296 a9e6b8875805
permissions -rwxr-xr-x
Simplify the output of test-bheads Also remove unneeded -d and -u commit options.

#!/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

echo '% state dump'
hg debugstate | cut -b 1-16,37- | sort
echo '% status'
hg st -A

hg debugrebuildstate
echo '% state dump'
hg debugstate | cut -b 1-16,37- | sort
echo '% status'
hg st -A