# HG changeset patch # User Matt Harbison # Date 1426215925 14400 # Node ID d6440a5076a5a0b84a1441a52bceae71d901202a # Parent eda2f36889b5bfcc5cdcf60a66c5ad5050243e70 obsolete: replace 'ctx._repo' with 'ctx.repo()' diff -r eda2f36889b5 -r d6440a5076a5 mercurial/obsolete.py --- a/mercurial/obsolete.py Thu Mar 12 23:02:19 2015 -0400 +++ b/mercurial/obsolete.py Thu Mar 12 23:05:25 2015 -0400 @@ -762,13 +762,13 @@ def precursormarkers(ctx): """obsolete marker marking this changeset as a successors""" - for data in ctx._repo.obsstore.precursors.get(ctx.node(), ()): - yield marker(ctx._repo, data) + for data in ctx.repo().obsstore.precursors.get(ctx.node(), ()): + yield marker(ctx.repo(), data) def successormarkers(ctx): """obsolete marker making this changeset obsolete""" - for data in ctx._repo.obsstore.successors.get(ctx.node(), ()): - yield marker(ctx._repo, data) + for data in ctx.repo().obsstore.successors.get(ctx.node(), ()): + yield marker(ctx.repo(), data) def allsuccessors(obsstore, nodes, ignoreflags=0): """Yield node for every successor of .