sapling/eden/scm/tests/test-debugrebuilddirstate-corrupt.t
Adam Simpkins ab3a7cb21f Move fb-mercurial sources into an eden/scm subdirectory.
Summary:
In preparation for merging fb-mercurial sources to the Eden repository,
move everything from the top-level directory into an `eden/scm`
subdirectory.
2019-11-13 16:04:48 -08:00

23 lines
459 B
Perl

#testcases treestate-on treestate-off
#if treestate-on
$ setconfig format.dirstate=2
#else
$ setconfig format.dirstate=1
#endif
Setup
$ hg init repo
$ cd repo
$ echo base > base
$ hg add base
$ hg commit -m "base"
Deliberately corrupt the dirstate.
$ dd if=/dev/zero bs=4096 count=1 of=.hg/dirstate 2> /dev/null
$ hg debugrebuilddirstate
warning: failed to inspect working copy parent
warning: failed to inspect working copy parent