mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
c576480d83
Passing [] to util.cmdmatcher accidentally fixes walking of files with "\n" in the name.
23 lines
226 B
Bash
Executable File
23 lines
226 B
Bash
Executable File
#!/bin/sh
|
|
# http://www.selenic.com/mercurial/bts/issue352
|
|
|
|
hg init foo
|
|
cd foo
|
|
|
|
A=`printf 'he\rllo'`
|
|
|
|
echo foo > "$A"
|
|
hg add
|
|
hg ci -A -m m
|
|
rm "$A"
|
|
|
|
echo foo > "hell
|
|
o"
|
|
hg add
|
|
hg ci -A -m m
|
|
|
|
echo foo > "$A"
|
|
hg debugwalk
|
|
|
|
exit 0
|