2018-07-03 15:35:41 +03:00
|
|
|
#require symlink
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
$ newrepo
|
|
|
|
$ mkdir a b
|
|
|
|
$ touch a/x
|
|
|
|
|
|
|
|
$ hg ci -m init -A a/x
|
|
|
|
|
|
|
|
Replace the directory with a symlink
|
|
|
|
|
|
|
|
$ mv a/x b/x
|
|
|
|
$ rmdir a
|
|
|
|
$ ln -s b a
|
|
|
|
|
|
|
|
"! a/x" should be shown, as it is implicitly removed
|
|
|
|
|
|
|
|
$ hg status
|
|
|
|
! a/x
|
|
|
|
? a
|
|
|
|
? b/x
|
|
|
|
|
|
|
|
$ hg ci -m rename -A .
|
|
|
|
adding a
|
|
|
|
removing a/x
|
|
|
|
adding b/x
|
|
|
|
|
2018-07-03 15:35:42 +03:00
|
|
|
"a/x" should not show up in "hg status", even if it exists
|
2018-07-03 15:35:41 +03:00
|
|
|
|
|
|
|
$ hg status
|