mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
459206adee
If an unknown file with a newline appears in the status output, color shouldn't raise a KeyError trying to parse second line in the filename.
44 lines
539 B
Bash
Executable File
44 lines
539 B
Bash
Executable File
#!/bin/sh
|
|
# http://mercurial.selenic.com/bts/issue352
|
|
|
|
"$TESTDIR/hghave" eol-in-paths || exit 80
|
|
|
|
echo % test 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
|
|
|
|
# http://mercurial.selenic.com/bts/issue2036
|
|
cd ..
|
|
echo % test issue2039
|
|
|
|
hg init bar
|
|
cd bar
|
|
|
|
echo "[extensions]" >> $HGRCPATH
|
|
echo "color=" >> $HGRCPATH
|
|
|
|
A=`printf 'foo\nbar'`
|
|
B=`printf 'foo\nbar.baz'`
|
|
|
|
touch "$A"
|
|
touch "$B"
|
|
|
|
hg status --color=always
|
|
|
|
exit 0
|