2018-06-14 03:49:29 +03:00
|
|
|
#testcases v0 v1 v2
|
2018-06-11 23:49:45 +03:00
|
|
|
|
2018-06-14 03:49:29 +03:00
|
|
|
#if v0
|
|
|
|
$ setconfig format.dirstate=0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if v1
|
|
|
|
$ setconfig format.dirstate=1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if v2
|
|
|
|
$ setconfig format.dirstate=2
|
2018-06-11 23:49:45 +03:00
|
|
|
#endif
|
|
|
|
|
2015-12-22 03:26:44 +03:00
|
|
|
$ 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
|