From patchwork Sat Mar 14 01:28:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [8,of,8] hgweb: replace 'ctx._repo' with 'ctx.repo()' From: Matt Harbison X-Patchwork-Id: 8088 Message-Id: <0bd08ed74fa0b4043ec4.1426296519@Envy> To: mercurial-devel@selenic.com Cc: matt_harbison@yahoo.com Date: Fri, 13 Mar 2015 21:28:39 -0400 # HG changeset patch # User Matt Harbison # 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):