[PATCH 8 of 8] hgweb: replace 'ctx._repo' with 'ctx.repo()'

Matt Harbison mharbison72 at gmail.com
Fri Mar 13 20:28:39 CDT 2015


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1426216506 14400
#      Thu Mar 12 23:15:06 2015 -0400
# Node ID 0bd08ed74fa0b4043ec4f57a5eec5d63f547fae7
# Parent  5bed1bb23db9ce521f1d0b950e6dc88d59b1029f
hgweb: replace 'ctx._repo' with 'ctx.repo()'

diff --git a/mercurial/hgweb/webutil.py b/mercurial/hgweb/webutil.py
--- a/mercurial/hgweb/webutil.py
+++ b/mercurial/hgweb/webutil.py
@@ -141,7 +141,7 @@
     if isinstance(ctx, context.basefilectx):
         introrev = ctx.introrev()
         if ctx.changectx().rev() != introrev:
-            return _siblings([ctx._repo[introrev]], hide)
+            return _siblings([ctx.repo()[introrev]], hide)
     return _siblings(ctx.parents(), hide)
 
 def children(ctx, hide=None):


More information about the Mercurial-devel mailing list