mercurial/util.py
changeset 34361 7508a7dc95c1
parent 34360 f435097d13c9
child 34362 b76937fafe8a
equal deleted inserted replaced
34360:f435097d13c9 34361:7508a7dc95c1
  1338                          "on Windows") % escapestr(c)
  1338                          "on Windows") % escapestr(c)
  1339         base = n.split('.')[0]
  1339         base = n.split('.')[0]
  1340         if base and base.lower() in _winreservednames:
  1340         if base and base.lower() in _winreservednames:
  1341             return _("filename contains '%s', which is reserved "
  1341             return _("filename contains '%s', which is reserved "
  1342                      "on Windows") % base
  1342                      "on Windows") % base
  1343         t = n[-1]
  1343         t = n[-1:]
  1344         if t in '. ' and n not in '..':
  1344         if t in '. ' and n not in '..':
  1345             return _("filename ends with '%s', which is not allowed "
  1345             return _("filename ends with '%s', which is not allowed "
  1346                      "on Windows") % t
  1346                      "on Windows") % t
  1347 
  1347 
  1348 if pycompat.osname == 'nt':
  1348 if pycompat.osname == 'nt':