##// END OF EJS Templates
Report filenames with disallowed characters as suggested by Mika Eloranta...
Thomas Arendsen Hein -
r6138:09847b90 default
parent child Browse files
Show More
@@ -197,7 +197,8 b' class dirstate(object):'
197 197
198 198 def _incpathcheck(self, f):
199 199 if '\r' in f or '\n' in f:
200 raise util.Abort(_("'\\n' and '\\r' disallowed in filenames"))
200 raise util.Abort(_("'\\n' and '\\r' disallowed in filenames: %r")
201 % f)
201 202 # shadows
202 203 if f in self._dirs:
203 204 raise util.Abort(_('directory %r already in dirstate') % f)
@@ -1,13 +1,13 b''
1 1 adding he llo
2 abort: '\n' and '\r' disallowed in filenames
2 abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
3 3 adding he llo
4 abort: '\n' and '\r' disallowed in filenames
4 abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
5 5 adding hell
6 6 o
7 abort: '\n' and '\r' disallowed in filenames
7 abort: '\n' and '\r' disallowed in filenames: 'hell\no'
8 8 adding hell
9 9 o
10 abort: '\n' and '\r' disallowed in filenames
10 abort: '\n' and '\r' disallowed in filenames: 'hell\no'
11 11 f he llo he llo
12 12 f hell
13 13 o hell
General Comments 0
You need to be logged in to leave comments. Login now