obsolete: replace 'ctx._repo' with 'ctx.repo()'
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 12 Mar 2015 23:05:25 -0400
changeset 24335 d6440a5076a5
parent 24334 eda2f36889b5
child 24336 c9f4ef967a1d
obsolete: replace 'ctx._repo' with 'ctx.repo()'
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 <nodes>.