mercurial/hgweb/webcommands.py
branchstable
changeset 14771 0cc66f13bea0
parent 14570 9f908ef5a595
child 15004 d06b9c55ddab
--- a/mercurial/hgweb/webcommands.py	Wed Jun 29 15:49:35 2011 +0300
+++ b/mercurial/hgweb/webcommands.py	Wed Jun 29 09:36:45 2011 +0200
@@ -432,10 +432,10 @@
             if limit > 0 and count >= limit:
                 return
             count += 1
-            if ctx.node() not in heads:
+            if not web.repo.branchheads(ctx.branch()):
+                status = 'closed'
+            elif ctx.node() not in heads:
                 status = 'inactive'
-            elif not web.repo.branchheads(ctx.branch()):
-                status = 'closed'
             else:
                 status = 'open'
             yield {'parity': parity.next(),