mercurial/revset.py
changeset 43726 6c6d67fc45cb
parent 43650 d212d657ba0e
child 43997 6e8678e7223a
--- a/mercurial/revset.py	Thu Nov 21 09:25:50 2019 +0100
+++ b/mercurial/revset.py	Tue Nov 19 14:04:09 2019 -0500
@@ -684,6 +684,8 @@
             mcache[0] = matchmod.match(repo.root, repo.getcwd(), [pat], ctx=c)
         m = mcache[0]
         fname = None
+
+        assert m is not None  # help pytype
         if not m.anypats() and len(m.files()) == 1:
             fname = m.files()[0]
         if fname is not None: