mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
75a8173a10
Summary: Add `#chg-compatible` to 572 tests that seem to pass with chg enabled. This should make them run faster. Reviewed By: xavierd Differential Revision: D18870507 fbshipit-source-id: fe895e733efffc9286cd3d17c7a156c803124395
27 lines
493 B
Perl
27 lines
493 B
Perl
#chg-compatible
|
|
|
|
#chg-compatible
|
|
|
|
#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
|