Mercurial > hg > mercurial-crew-with-dirclash
diff tests/test-issue352 @ 3607:f4c9bb4ad7b1
issue352: disallow '\n' and '\r' in filenames (dirstate and manifest)
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Wed, 01 Nov 2006 17:56:55 +0100 |
parents | |
children | 08d31e43592a |
line wrap: on
line diff
new file mode 100755 --- /dev/null +++ b/tests/test-issue352 @@ -0,0 +1,21 @@ +#!/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