dirstate: fix rebuild; add a test
If rebuild calls invalidate, it will just queue a (re)read of the dirstate
file, while what we really want is to empty the current state.
#!/bin/shmkdir acd ahg initecho foo > bhg add bhg ci -m "b" -d "1000000 0"chmod -w .hg/storecd ..hg clone a bchmod +w a/.hg/store # let test clean upcd bhg verify