merge with stable
authorMatt Mackall <mpm@selenic.com>
Fri, 04 Mar 2011 19:21:36 -0600
changeset 13535 0d3cce1de233
parent 13533 b4f5f76386f2 (current diff)
parent 13534 4ec34de8bbb1 (diff)
child 13536 fac040b7e822
merge with stable
--- a/mercurial/cmdutil.py	Fri Feb 18 01:19:01 2011 +0100
+++ b/mercurial/cmdutil.py	Fri Mar 04 19:21:36 2011 -0600
@@ -261,6 +261,8 @@
     return ret
 
 def match(repo, pats=[], opts={}, globbed=False, default='relpath'):
+    if pats == ("",):
+        pats = []
     if not globbed and default == 'relpath':
         pats = expandpats(pats or [])
     m = matchmod.match(repo.root, repo.getcwd(), pats,