Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
24339:bcc319d936a3 | 24340:567ae5365754 |
---|---|
139 | 139 |
140 def parents(ctx, hide=None): | 140 def parents(ctx, hide=None): |
141 if isinstance(ctx, context.basefilectx): | 141 if isinstance(ctx, context.basefilectx): |
142 introrev = ctx.introrev() | 142 introrev = ctx.introrev() |
143 if ctx.changectx().rev() != introrev: | 143 if ctx.changectx().rev() != introrev: |
144 return _siblings([ctx._repo[introrev]], hide) | 144 return _siblings([ctx.repo()[introrev]], hide) |
145 return _siblings(ctx.parents(), hide) | 145 return _siblings(ctx.parents(), hide) |
146 | 146 |
147 def children(ctx, hide=None): | 147 def children(ctx, hide=None): |
148 return _siblings(ctx.children(), hide) | 148 return _siblings(ctx.children(), hide) |
149 | 149 |