Mercurial > hg
changeset 1408:5010207c3527
symlink unit test
author | Matthew Elder <sseses@gmail.com> |
---|---|
date | Tue, 18 Oct 2005 21:32:51 -0700 |
parents | db571bcaa35d |
children | 964baa35faf8 |
files | tests/test-symlinks tests/test-symlinks.out |
diffstat | 2 files changed, 28 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-symlinks Tue Oct 18 21:32:51 2005 -0700 @@ -0,0 +1,24 @@ +#!/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?'