tests/test-issue352
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
Sat, 10 Mar 2007 22:03:23 -0300
changeset 4174 7307d2e98b32
parent 3607 f4c9bb4ad7b1
child 4181 08d31e43592a
permissions -rwxr-xr-x
fix qrefresh'ing an empty patch This is not superefficient (the commit will have to walk the whole tree), but it works.

#!/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