comparison tests/test-hgweb-raw.t @ 13962:8b252e826c68

add: introduce a warning message for non-portable filenames (issue2756) (BC) On POSIX platforms, the 'add', 'addremove', 'copy' and 'rename' commands now warn if a file has a name that can't be checked out on Windows. Example: $ hg add con.xml warning: filename contains 'con', which is reserved on Windows: 'con.xml' $ hg status A con.xml The file is added despite the warning. The warning is ON by default. It can be suppressed by setting the config option 'portablefilenames' in section 'ui' to 'ignore' or 'false': $ hg --config ui.portablefilenames=ignore add con.xml $ hg sta A con.xml If ui.portablefilenames is set to 'abort', then the command is aborted: $ hg --config ui.portablefilenames=abort add con.xml abort: filename contains 'con', which is reserved on Windows: 'con.xml' On Windows, the ui.portablefilenames config setting is irrelevant and the command is always aborted if a problematic filename is found.
author Adrian Buehlmann <adrian@cadifra.com>
date Tue, 19 Apr 2011 12:42:53 +0200
parents cb1e33a41d13
children d06b9c55ddab
comparison
equal deleted inserted replaced
13961:1708a0cad774 13962:8b252e826c68
8 > that will go inside the file and take a few lines. 8 > that will go inside the file and take a few lines.
9 > It is very boring to read, but computers don't 9 > It is very boring to read, but computers don't
10 > care about things like that. 10 > care about things like that.
11 > ENDSOME 11 > ENDSOME
12 $ hg add 'sub/some "text".txt' 12 $ hg add 'sub/some "text".txt'
13 warning: filename contains '"', which is reserved on Windows: 'sub/some "text".txt'
13 $ hg commit -d "1 0" -m "Just some text" 14 $ hg commit -d "1 0" -m "Just some text"
14 15
15 $ hg serve -p $HGPORT -A access.log -E error.log -d --pid-file=hg.pid 16 $ hg serve -p $HGPORT -A access.log -E error.log -d --pid-file=hg.pid
16 17
17 $ cat hg.pid >> $DAEMON_PIDS 18 $ cat hg.pid >> $DAEMON_PIDS