[PATCH] util: set instead of pseudo dict
Simon Heimberg
simohe at besonet.ch
Tue May 19 02:58:00 CDT 2009
# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1242719826 -7200
# Node ID 1bd429fa3708242705555c4011201ecb77f5b5e9
# Parent 4bc037e813f4166401e2c7679c369ba5d3e31c98
util: set instead of pseudo dict
diff -r 4bc037e813f4 -r 1bd429fa3708 mercurial/util.py
--- a/mercurial/util.py Die Mai 19 09:55:20 2009 +0200
+++ b/mercurial/util.py Die Mai 19 09:57:06 2009 +0200
@@ -266,7 +266,7 @@
res += re.escape(c)
return head + res + tail
-_globchars = {'[': 1, '{': 1, '*': 1, '?': 1}
+_globchars = set('[{*?')
def pathto(root, n1, n2):
'''return the relative path from one place to another.
More information about the Mercurial-devel
mailing list