hgweb: replace 'ctx._repo' with 'ctx.repo()'
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 12 Mar 2015 23:15:06 -0400
changeset 24340 567ae5365754
parent 24339 bcc319d936a3
child 24341 616c01b69898
hgweb: replace 'ctx._repo' with 'ctx.repo()'
mercurial/hgweb/webutil.py
--- a/mercurial/hgweb/webutil.py	Thu Mar 12 23:18:20 2015 -0400
+++ b/mercurial/hgweb/webutil.py	Thu Mar 12 23:15:06 2015 -0400
@@ -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):