diff mercurial/match.py @ 41129:074c72a38423

merge with stable
author Augie Fackler <augie@google.com>
date Mon, 07 Jan 2019 19:03:23 -0500
parents 9e462fb88f79 481249481392
children 4fab8a7d2d72
line wrap: on
line diff
--- a/mercurial/match.py	Mon Jan 07 15:25:41 2019 -0800
+++ b/mercurial/match.py	Mon Jan 07 19:03:23 2019 -0500
@@ -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))