2019-12-10 02:24:31 +03:00
|
|
|
#chg-compatible
|
|
|
|
|
|
|
|
#chg-compatible
|
|
|
|
|
2018-06-11 23:49:45 +03:00
|
|
|
#testcases treestate-on treestate-off
|
|
|
|
|
|
|
|
#if treestate-on
|
2018-08-01 03:01:14 +03:00
|
|
|
$ setconfig format.dirstate=2
|
2018-06-11 23:49:45 +03:00
|
|
|
#else
|
2018-08-01 03:01:14 +03:00
|
|
|
$ setconfig format.dirstate=1
|
2018-06-11 23:49:45 +03:00
|
|
|
#endif
|
|
|
|
|
2018-03-02 20:02:38 +03:00
|
|
|
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
|
2019-11-08 23:11:03 +03:00
|
|
|
warning: failed to inspect working copy parent
|
|
|
|
warning: failed to inspect working copy parent
|