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/shhghg -qhg helphg -q helphg add -hhg add --skjdfkshg help diffhg help statushg -q help statushg help foohg skjdfksexit 0