mirror of
https://github.com/facebook/sapling.git
synced 2025-01-06 21:48:36 +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
40 lines
505 B
Perl
40 lines
505 B
Perl
#chg-compatible
|
|
|
|
#chg-compatible
|
|
|
|
#chg-compatible
|
|
|
|
#testcases v0 v1 v2
|
|
|
|
#if v0
|
|
$ setconfig format.dirstate=0
|
|
#endif
|
|
|
|
#if v1
|
|
$ setconfig format.dirstate=1
|
|
#endif
|
|
|
|
#if v2
|
|
$ setconfig format.dirstate=2
|
|
#endif
|
|
|
|
Set up
|
|
|
|
$ hg init repo
|
|
$ cd repo
|
|
|
|
Try to import an empty patch
|
|
|
|
$ hg import --no-commit - <<EOF
|
|
> EOF
|
|
applying patch from stdin
|
|
abort: stdin: no diffs found
|
|
[255]
|
|
|
|
No dirstate backups are left behind
|
|
|
|
$ ls .hg/dirstate* | sort
|
|
.hg/dirstate
|
|
.hg/dirstate.tree.* (glob) (?)
|
|
|