sapling/tests/test-debugrebuilddirstate-corrupt.t
Jun Wu 3766bed594 treestate: migrate old config items
Summary: `format.usetreestate` is no longer used.

Reviewed By: DurhamG

Differential Revision: D9093126

fbshipit-source-id: a509810a4d8464ef4c0d43a19269d6e35e7aaefa
2018-07-31 17:04:50 -07:00

21 lines
361 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