diff -r fb9b6bfb54b5 -r 448ed4d3ee90 mercurial/scmutil.py --- a/mercurial/scmutil.py Fri May 05 14:10:58 2017 -0700 +++ b/mercurial/scmutil.py Fri May 05 10:08:36 2017 -0700 @@ -120,10 +120,6 @@ secretlist = [] if excluded: for n in excluded: - if n not in repo: - # discovery should not have included the filtered revision, - # we have to explicitly exclude it until discovery is cleanup. - continue ctx = repo[n] if ctx.phase() >= phases.secret and not ctx.extinct(): secretlist.append(n)