use inst.args instead of using __getitem__ directly
DeprecationWarning: __getitem__ not supported for exception classes in 3.x;
use args attribute
#!/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