mercurial/util.py
changeset 1454 f4250806dbeb
parent 1446 4babaa52badf
child 1479 1a3c6689ef2b
--- a/mercurial/util.py	Wed Oct 26 16:10:36 2005 -0700
+++ b/mercurial/util.py	Wed Oct 26 16:10:56 2005 -0700
@@ -246,6 +246,8 @@
 
     def matchfn(pats, tail):
         """build a matching function from a set of patterns"""
+        if not pats:
+            return
         matches = []
         for k, p in pats:
             try: