test-mq-symlinks: fix symlink handling on solaris stable
authorMads Kiilerich <mads@kiilerich.com>
Fri, 24 Sep 2010 02:52:12 +0200
branchstable
changeset 12396 ea384dbca5b1
parent 12395 cc6d40dffa45
child 12397 3b8ced3e3bbf
test-mq-symlinks: fix symlink handling on solaris It seems like ln -s gets confused if an existing symlink is dangling: $ rm -f a b; ln -s a b; ln -sf b b ln: cannot create b: File exists We now rely on rm instead of on ln -sf.
tests/test-mq-symlinks
--- a/tests/test-mq-symlinks	Fri Sep 24 02:49:09 2010 +0200
+++ b/tests/test-mq-symlinks	Fri Sep 24 02:52:12 2010 +0200
@@ -61,6 +61,7 @@
 hg add linka
 hg qnew link
 hg mv linka linkb
+rm linkb
 ln -sf linkb linkb
 hg qnew movelink
 hg qpop
@@ -71,4 +72,4 @@
 ln -s linkbb linkb
 hg qpush
 
-true
\ No newline at end of file
+true