Mercurial > hg-stable
diff tests/test-eolfilename.t @ 13945:03f3ce7ca2a8
copy: do not copy file if name is disallowed anyway
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Fri, 15 Apr 2011 16:15:32 +0200 |
parents | 05fffd665170 |
children | e0f07847f8de |
line wrap: on
line diff
--- a/tests/test-eolfilename.t Fri Apr 15 16:15:30 2011 +0200 +++ b/tests/test-eolfilename.t Fri Apr 15 16:15:32 2011 +0200 @@ -36,6 +36,17 @@ o hell o + $ 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] + http://mercurial.selenic.com/bts/issue2036 $ cd ..