sapling/eden/scm/tests/test-debugrebuilddirstate-corrupt.t
Jun Wu e179789b7b tests: remove test cases about legacy dirstates
Summary:
Treestate is the only supported dirstate format. Remove test cases about legacy
dirstates.

Reviewed By: DurhamG

Differential Revision: D24340584

fbshipit-source-id: 2ebaa7d5aa9e8639e3ce4caa67c4f93155b52558
2020-10-20 16:36:50 -07:00

16 lines
293 B
Perl

#chg-compatible
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