mercurial/hgweb/webcommands.py
changeset 37363 d3a2344446e6
parent 37084 f0b6fbea00cf
child 37387 83d537162894
--- a/mercurial/hgweb/webcommands.py	Thu Apr 05 00:00:48 2018 -0700
+++ b/mercurial/hgweb/webcommands.py	Wed Apr 04 23:55:47 2018 -0700
@@ -1058,7 +1058,9 @@
     parity = paritygen(web.stripecount, offset=start - end)
 
     repo = web.repo
-    revs = fctx.filelog().revs(start, end - 1)
+    filelog = fctx.filelog()
+    revs = [filerev for filerev in filelog.revs(start, end - 1)
+            if filelog.linkrev(filerev) in repo]
     entries = []
 
     diffstyle = web.config('web', 'style')