diff tests/test-mq-symlinks.t @ 12345:e0ee3e822a9a

Merge with stable
author Patrick Mezard <pmezard@gmail.com>
date Mon, 20 Sep 2010 22:29:13 +0200
parents tests/test-mq-symlinks@aca8b10bca6e tests/test-mq-symlinks@7f48f0b188c6
children 2bc926ad65c2
line wrap: on
line diff
--- 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]