diff mercurial/util.py @ 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 abaee83ce0a6 a8c0365b2ace
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