changeset 3860:8e907b86126b

fix reserved char on windows, '[]+' are allowed
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 10 Dec 2006 21:53:01 +0100
parents 8c24b6fd5866
children db36a4f490f6
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Sun Dec 10 19:41:57 2006 +0100
+++ b/mercurial/util.py	Sun Dec 10 21:53:01 2006 +0100
@@ -907,7 +907,7 @@
 
 def _buildencodefun():
     e = '_'
-    win_reserved = [ord(x) for x in '|\?*<":>+[]']
+    win_reserved = [ord(x) for x in '\\:*?"<>|']
     cmap = dict([ (chr(x), chr(x)) for x in xrange(127) ])
     for x in (range(32) + range(126, 256) + win_reserved):
         cmap[chr(x)] = "~%02x" % x