mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 09:48:05 +03:00
3766bed594
Summary: `format.usetreestate` is no longer used. Reviewed By: DurhamG Differential Revision: D9093126 fbshipit-source-id: a509810a4d8464ef4c0d43a19269d6e35e7aaefa
21 lines
361 B
Perl
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
|