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

login
register
mail settings
Submitter Matt Harbison
Date March 14, 2015, 1:28 a.m.
Message ID <0bd08ed74fa0b4043ec4.1426296519@Envy>
Download mbox | patch
Permalink /patch/8088/
State Accepted
Commit 567ae53657544744155897ada91f16f8af61ad8a
Headers show

Comments

Matt Harbison - March 14, 2015, 1:28 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@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()'
Matt Mackall - March 16, 2015, 7:31 p.m.
On Fri, 2015-03-13 at 21:28 -0400, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison@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()'

These are queued for default, thanks.

Patch

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):