comparison tests/test-walk.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 ffb5c09ba822
children 25c68ac247c1
comparison
equal deleted inserted replaced
13961:1708a0cad774 13962:8b252e826c68
26 adding glob:glob 26 adding glob:glob
27 adding mammals/Procyonidae/cacomistle 27 adding mammals/Procyonidae/cacomistle
28 adding mammals/Procyonidae/coatimundi 28 adding mammals/Procyonidae/coatimundi
29 adding mammals/Procyonidae/raccoon 29 adding mammals/Procyonidae/raccoon
30 adding mammals/skunk 30 adding mammals/skunk
31 warning: filename contains ':', which is reserved on Windows: 'glob:glob'
31 $ hg commit -m "commit #0" 32 $ hg commit -m "commit #0"
32 33
33 $ hg debugwalk 34 $ hg debugwalk
34 f beans/black beans/black 35 f beans/black beans/black
35 f beans/borlotti beans/borlotti 36 f beans/borlotti beans/borlotti