mercurial/cmdutil.py
changeset 9118 78e54b9f3a62
parent 8994 4a1187d3cb00
child 9367 1ef630452e0b
--- a/mercurial/cmdutil.py	Sun Jul 12 21:37:24 2009 +0200
+++ b/mercurial/cmdutil.py	Sun Jul 12 00:46:43 2009 -0500
@@ -242,7 +242,10 @@
     for p in pats:
         kind, name = _match._patsplit(p, None)
         if kind is None:
-            globbed = glob.glob(name)
+            try:
+                globbed = glob.glob(name)
+            except re.error:
+                globbed = [name]
             if globbed:
                 ret.extend(globbed)
                 continue