2014-08-06 20:43:59 +04:00
|
|
|
#require eol-in-paths
|
2010-09-26 22:41:32 +04:00
|
|
|
|
2015-09-30 23:31:07 +03:00
|
|
|
https://bz.mercurial-scm.org/352
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
test issue352
|
|
|
|
|
|
|
|
$ hg init foo
|
|
|
|
$ cd foo
|
|
|
|
$ A=`printf 'he\rllo'`
|
|
|
|
$ echo foo > "$A"
|
|
|
|
$ hg add
|
2012-09-26 02:56:27 +04:00
|
|
|
adding he\r (no-eol) (esc)
|
|
|
|
llo
|
2010-09-26 22:41:32 +04:00
|
|
|
abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
|
|
|
|
[255]
|
|
|
|
$ hg ci -A -m m
|
2012-09-26 02:56:27 +04:00
|
|
|
adding he\r (no-eol) (esc)
|
|
|
|
llo
|
2010-09-26 22:41:32 +04:00
|
|
|
abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
|
|
|
|
[255]
|
|
|
|
$ rm "$A"
|
|
|
|
$ echo foo > "hell
|
|
|
|
> o"
|
|
|
|
$ hg add
|
|
|
|
adding hell
|
|
|
|
o
|
|
|
|
abort: '\n' and '\r' disallowed in filenames: 'hell\no'
|
|
|
|
[255]
|
|
|
|
$ hg ci -A -m m
|
|
|
|
adding hell
|
|
|
|
o
|
|
|
|
abort: '\n' and '\r' disallowed in filenames: 'hell\no'
|
|
|
|
[255]
|
|
|
|
$ echo foo > "$A"
|
|
|
|
$ hg debugwalk
|
2012-09-26 02:56:27 +04:00
|
|
|
f he\r (no-eol) (esc)
|
|
|
|
llo he\r (no-eol) (esc)
|
|
|
|
llo
|
2010-09-26 22:41:32 +04:00
|
|
|
f hell
|
|
|
|
o hell
|
|
|
|
o
|
|
|
|
|
2011-04-15 18:15:32 +04:00
|
|
|
$ echo bla > quickfox
|
|
|
|
$ hg add quickfox
|
|
|
|
$ hg ci -m 2
|
|
|
|
$ A=`printf 'quick\rfox'`
|
|
|
|
$ hg cp quickfox "$A"
|
|
|
|
abort: '\n' and '\r' disallowed in filenames: 'quick\rfox'
|
|
|
|
[255]
|
|
|
|
$ hg mv quickfox "$A"
|
|
|
|
abort: '\n' and '\r' disallowed in filenames: 'quick\rfox'
|
|
|
|
[255]
|
|
|
|
|
2015-09-30 23:31:07 +03:00
|
|
|
https://bz.mercurial-scm.org/2036
|
2010-09-26 22:41:32 +04:00
|
|
|
|
|
|
|
$ cd ..
|
|
|
|
|
|
|
|
test issue2039
|
|
|
|
|
|
|
|
$ hg init bar
|
|
|
|
$ cd bar
|
2014-11-04 17:41:46 +03:00
|
|
|
$ cat <<EOF >> $HGRCPATH
|
|
|
|
> [extensions]
|
|
|
|
> color =
|
|
|
|
> [color]
|
|
|
|
> mode = ansi
|
|
|
|
> EOF
|
2010-09-26 22:41:32 +04:00
|
|
|
$ A=`printf 'foo\nbar'`
|
|
|
|
$ B=`printf 'foo\nbar.baz'`
|
|
|
|
$ touch "$A"
|
|
|
|
$ touch "$B"
|
|
|
|
$ hg status --color=always
|
2012-11-07 03:30:47 +04:00
|
|
|
\x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mfoo\x1b[0m (esc)
|
2010-11-08 03:41:41 +03:00
|
|
|
\x1b[0;35;1;4mbar\x1b[0m (esc)
|
2012-11-07 03:30:47 +04:00
|
|
|
\x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mfoo\x1b[0m (esc)
|
2010-11-08 03:41:41 +03:00
|
|
|
\x1b[0;35;1;4mbar.baz\x1b[0m (esc)
|
2012-06-11 03:40:51 +04:00
|
|
|
|
|
|
|
$ cd ..
|