tests/test-rebuildstate
author Patrick Mezard <pmezard@gmail.com>
Fri, 04 Apr 2008 23:09:54 +0200
changeset 6473 9c897ffd3637
parent 5858 e7ed5d07cc4c
child 6296 a9e6b8875805
permissions -rwxr-xr-x
Backed out changeset 7f4257b5cbfc util.binary heuristic cannot be trusted when decoding working directory files.

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