Mercurial > public > mercurial-scm > hg
diff mercurial/util.py @ 13974:23f2736abce3
move checkfilename from util to scmutil
checkfilename is specific to Mercurial, since it contains the knowledege
that Mercurial can't track files with \n or \r in the name.
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Thu, 21 Apr 2011 13:18:52 +0200 |
parents | d1f4e7fd970a |
children | 938fbeacac84 |
line wrap: on
line diff
--- a/mercurial/util.py Thu Apr 21 12:10:03 2011 +0200 +++ b/mercurial/util.py Thu Apr 21 13:18:52 2011 +0200 @@ -445,11 +445,6 @@ return hardlink, num -def checkfilename(f): - '''Check that the filename f is an acceptable filename for a tracked file''' - if '\r' in f or '\n' in f: - raise Abort(_("'\\n' and '\\r' disallowed in filenames: %r") % f) - _windows_reserved_filenames = '''con prn aux nul com1 com2 com3 com4 com5 com6 com7 com8 com9 lpt1 lpt2 lpt3 lpt4 lpt5 lpt6 lpt7 lpt8 lpt9'''.split()