changeset 13944 | bc32bb0e909f |
parent 13876 | 10c7d92ac482 |
child 13974 | 23f2736abce3 |
--- a/mercurial/dirstate.py Fri Apr 15 16:15:28 2011 +0200 +++ b/mercurial/dirstate.py Fri Apr 15 16:15:30 2011 +0200 @@ -269,9 +269,7 @@ def _addpath(self, f, check=False): oldstate = self[f] if check or oldstate == "r": - if '\r' in f or '\n' in f: - raise util.Abort( - _("'\\n' and '\\r' disallowed in filenames: %r") % f) + util.checkfilename(f) if f in self._dirs: raise util.Abort(_('directory %r already in dirstate') % f) # shadows