Submitter | Yuya Nishihara |
---|---|
Date | Sept. 27, 2017, 12:34 p.m. |
Message ID | <1f783de54c8cce12807b.1506515680@mimosa> |
Download | mbox | patch |
Permalink | /patch/24182/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -1284,8 +1284,8 @@ def checkwinfilename(path): return _("filename contains '%s', which is reserved " "on Windows") % c if ord(c) <= 31: - return _("filename contains %r, which is invalid " - "on Windows") % c + return _("filename contains '%s', which is invalid " + "on Windows") % escapestr(c) base = n.split('.')[0] if base and base.lower() in _winreservednames: return _("filename contains '%s', which is reserved "