tests/test-symlinks
author Matt Mackall <mpm@selenic.com>
Wed, 26 Oct 2005 16:32:50 -0700
changeset 1456 214f42f23a3b
parent 1408 5010207c3527
child 1487 2bc6cd62a29c
permissions -rwxr-xr-x
Remove copy/rename --parents option This is no longer needed now that we have more standard UNIX-like copy semantics.

#!/bin/sh
#Test bug regarding symlinks that showed up in hg 0.7
#Author: Matthew Elder <sseses@gmail.com>

#make and initialize repo
hg init test; cd test;

#make a file and a symlink
touch foo; ln -s foo bar;

#import with addremove -- symlink walking should _not_ screwup.
hg addremove

#commit -- the symlink should _not_ appear added to dir state
hg commit -m 'initial'

#add a new file so hg will let me commit again
touch bomb

#again, symlink should _not_ show up on dir state
hg addremove

#Assert screamed here before, should go by without consequence
hg commit -m 'is there a bug?'