tests/test-mq-symlinks.t
changeset 12345 e0ee3e822a9a
parent 12341 aca8b10bca6e
parent 11908 7f48f0b188c6
child 12398 2bc926ad65c2
--- a/tests/test-mq-symlinks.t	Mon Sep 20 15:46:17 2010 +0200
+++ b/tests/test-mq-symlinks.t	Mon Sep 20 22:29:13 2010 +0200
@@ -88,3 +88,33 @@
   C b
   C c
   C s
+
+replace broken symlink with another broken symlink
+
+  $ ln -s linka linka
+  $ hg add linka
+  $ hg qnew link
+  $ hg mv linka linkb
+  $ ln -sf linkb linkb
+  $ hg qnew movelink
+  $ hg qpop
+  popping movelink
+  now at: link
+  $ hg qpush
+  applying movelink
+  now at: movelink
+  $ $TESTDIR/readlink.py linkb
+  linkb -> linkb
+
+check patch does not overwrite untracked symlinks
+
+  $ hg qpop
+  popping movelink
+  now at: link
+  $ ln -s linkbb linkb
+  $ hg qpush
+  applying movelink
+  patch failed, unable to continue (try -v)
+  patch failed, rejects left in working dir
+  errors during apply, please fix and refresh movelink
+  [2]