##// END OF EJS Templates
revset: add an assertion to help pytype...
Matt Harbison -
r44119:6c6d67fc default
parent child Browse files
Show More
@@ -684,6 +684,8 b' def checkstatus(repo, subset, pat, field'
684 mcache[0] = matchmod.match(repo.root, repo.getcwd(), [pat], ctx=c)
684 mcache[0] = matchmod.match(repo.root, repo.getcwd(), [pat], ctx=c)
685 m = mcache[0]
685 m = mcache[0]
686 fname = None
686 fname = None
687
688 assert m is not None # help pytype
687 if not m.anypats() and len(m.files()) == 1:
689 if not m.anypats() and len(m.files()) == 1:
688 fname = m.files()[0]
690 fname = m.files()[0]
689 if fname is not None:
691 if fname is not None:
General Comments 0
You need to be logged in to leave comments. Login now