mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +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
37 lines
660 B
Raku
37 lines
660 B
Raku
#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
|
|
|
|
$ cat >> $HGRCPATH << EOF
|
|
> [ui]
|
|
> logtemplate="{rev}:{node|short} ({phase}) [{tags} {bookmarks}] {desc|firstline}\n"
|
|
> [extensions]
|
|
> dirstateparanoidcheck = $TESTDIR/../contrib/dirstatenonnormalcheck.py
|
|
> [experimental]
|
|
> nonnormalparanoidcheck = True
|
|
> [devel]
|
|
> all-warnings=True
|
|
> EOF
|
|
$ mkcommit() {
|
|
> echo "$1" > "$1"
|
|
> hg add "$1"
|
|
> hg ci -m "add $1"
|
|
> }
|
|
|
|
$ hg init testrepo
|
|
$ cd testrepo
|
|
$ mkcommit a
|
|
$ mkcommit b
|
|
$ mkcommit c
|
|
$ hg status
|