add 'debugrebuildstate' to rebuild the dirstate from a given revision
- added and removed files will be lost while recreating the dirstate
- modifications are not lost
#!/bin/shmkdir acd ahg initecho foo > bhg add bhg ci -m "b" -d "0 0"chmod -w .hgcd ..hg clone a bchmod +w a/.hg # let test clean upcd bhg verify