mercurial/match.py
branchstable
changeset 41022 481249481392
parent 40345 d30a19d10441
child 41129 074c72a38423
--- a/mercurial/match.py	Fri Jan 04 21:01:10 2019 -0500
+++ b/mercurial/match.py	Sat Jan 05 15:44:55 2019 +0900
@@ -48,7 +48,7 @@
 
     for kind, pat, source in kindpats:
         if kind == 'set':
-            if not ctx:
+            if ctx is None:
                 raise error.ProgrammingError("fileset expression with no "
                                              "context")
             matchers.append(ctx.matchfileset(pat, badfn=badfn))