diff mercurial/hgweb/webutil.py @ 24340:567ae5365754

hgweb: replace 'ctx._repo' with 'ctx.repo()'
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 12 Mar 2015 23:15:06 -0400
parents 6ddc86eedc3b
children 5ec4bda3097a
line wrap: on
line diff
--- 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):