mercurial/manifest.py
changeset 39777 b63dee7bd0d9
parent 39763 5ccd791344f3
child 39858 9534fe1e5d28
equal deleted inserted replaced
39776:cb65d4b7e429 39777:b63dee7bd0d9
   641 
   641 
   642 def _checkforbidden(l):
   642 def _checkforbidden(l):
   643     """Check filenames for illegal characters."""
   643     """Check filenames for illegal characters."""
   644     for f in l:
   644     for f in l:
   645         if '\n' in f or '\r' in f:
   645         if '\n' in f or '\r' in f:
   646             raise error.RevlogError(
   646             raise error.StorageError(
   647                 _("'\\n' and '\\r' disallowed in filenames: %r")
   647                 _("'\\n' and '\\r' disallowed in filenames: %r")
   648                 % pycompat.bytestr(f))
   648                 % pycompat.bytestr(f))
   649 
   649 
   650 
   650 
   651 # apply the changes collected during the bisect loop to our addlist
   651 # apply the changes collected during the bisect loop to our addlist