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
|
|
|
|
|
2017-10-20 15:53:33 +03:00
|
|
|
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]
|
|
|
|
|
2017-10-20 15:53:35 +03:00
|
|
|
No dirstate backups are left behind
|
2017-10-20 15:53:33 +03:00
|
|
|
|
|
|
|
$ ls .hg/dirstate* | sort
|
|
|
|
.hg/dirstate
|
2018-06-11 23:49:45 +03:00
|
|
|
.hg/dirstate.tree.* (glob) (?)
|
2017-10-20 15:53:33 +03:00
|
|
|
|