mirror of
https://github.com/facebook/sapling.git
synced 2024-10-16 19:57:18 +03:00
d26a9397e6
Summary: Previously, there are 2 configs: `treedirstate.useinnewrepos` and `format.usetreestate`. They are both related to dirstate format and conflict with each other. This patch unifies them into a single config `format.dirstate`. As we're here, merge `test-fb-hgext-treedirstate-x.t` to `test-dirstate-x.t` if they were previously copied from `test-dirstate-x.t` Reviewed By: markbt Differential Revision: D8393878 fbshipit-source-id: 57abeea22ce732d93205e4d4308923afa90693f4
34 lines
454 B
Perl
34 lines
454 B
Perl
#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) (?)
|
|
|