##// END OF EJS Templates
improved semantics for remove (issue438)...
improved semantics for remove (issue438) - Added files are never deleted (only removed with --force). - Modified files can only be removed with --force. - With --after, only deleted files are removed. - With --after --force, all files are removed but not deleted.

File last commit:

r5075:2184378b default
r6346:8e3b6513 default
Show More
test-issue352
24 lines | 269 B | text/plain | TextLexer
Giorgos Keramidas
Use printf(1) instead of using bash-specific shell code....
r4292 #!/bin/sh
Benoit Boissinot
issue352: disallow '\n' and '\r' in filenames (dirstate and manifest)
r3607 # http://www.selenic.com/mercurial/bts/issue352
Patrick Mezard
test-issue352: skip tests if platform does not support EOL in paths.
r5075 "$TESTDIR/hghave" eol-in-paths || exit 80
Benoit Boissinot
issue352: disallow '\n' and '\r' in filenames (dirstate and manifest)
r3607 hg init foo
cd foo
Giorgos Keramidas
Use printf(1) instead of using bash-specific shell code....
r4292 A=`printf 'he\rllo'`
Benoit Boissinot
issue352: disallow '\n' and '\r' in filenames (dirstate and manifest)
r3607
echo foo > "$A"
hg add
hg ci -A -m m
rm "$A"
Alexis S. L. Carvalho
Leave normalization of patterns to util._matcher...
r4186
echo foo > "hell
o"
Benoit Boissinot
issue352: disallow '\n' and '\r' in filenames (dirstate and manifest)
r3607 hg add
hg ci -A -m m
Alexis S. L. Carvalho
Leave normalization of patterns to util._matcher...
r4186 echo foo > "$A"
hg debugwalk
Benoit Boissinot
issue352: disallow '\n' and '\r' in filenames (dirstate and manifest)
r3607 exit 0