view tests/test-issue352 @ 4136:eb5d4fec1487

Fix addremove for symlinks to non-existent files
author Giorgos Keramidas <keramida@ceid.upatras.gr>
date Fri, 05 Jan 2007 21:28:49 +0200
parents f4c9bb4ad7b1
children 08d31e43592a
line wrap: on
line source

#!/bin/bash
# http://www.selenic.com/mercurial/bts/issue352

hg init foo
cd foo

A=`echo -e -n 'he\rllo'`

echo foo > "hell
o"
echo foo > "$A"
hg add
hg ci -A -m m
rm "$A"
ls
hg add
# BUG ? we don't walk on filenames with '\n' (regexp related) ?
hg debugwalk
hg ci -A -m m

exit 0