##// 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 def _incpathcheck(self, f):
198 def _incpathcheck(self, f):
199 if '\r' in f or '\n' in f:
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 # shadows
202 # shadows
202 if f in self._dirs:
203 if f in self._dirs:
203 raise util.Abort(_('directory %r already in dirstate') % f)
204 raise util.Abort(_('directory %r already in dirstate') % f)
@@ -1,13 +1,13 b''
1 adding he llo
1 adding he llo
2 abort: '\n' and '\r' disallowed in filenames
2 abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
3 adding he llo
3 adding he llo
4 abort: '\n' and '\r' disallowed in filenames
4 abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
5 adding hell
5 adding hell
6 o
6 o
7 abort: '\n' and '\r' disallowed in filenames
7 abort: '\n' and '\r' disallowed in filenames: 'hell\no'
8 adding hell
8 adding hell
9 o
9 o
10 abort: '\n' and '\r' disallowed in filenames
10 abort: '\n' and '\r' disallowed in filenames: 'hell\no'
11 f he llo he llo
11 f he llo he llo
12 f hell
12 f hell
13 o hell
13 o hell
General Comments 0
You need to be logged in to leave comments. Login now