largefiles: replace 'ctx._repo' with 'ctx.repo()'
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 12 Mar 2015 23:08:16 -0400
changeset 24336 c9f4ef967a1d
parent 24335 d6440a5076a5
child 24337 696ab1a24ae0
largefiles: replace 'ctx._repo' with 'ctx.repo()'
hgext/largefiles/lfutil.py
hgext/largefiles/overrides.py
--- a/hgext/largefiles/lfutil.py	Thu Mar 12 23:05:25 2015 -0400
+++ b/hgext/largefiles/lfutil.py	Thu Mar 12 23:08:16 2015 -0400
@@ -388,7 +388,7 @@
         lfdirstate.drop(lfile)
 
 def markcommitted(orig, ctx, node):
-    repo = ctx._repo
+    repo = ctx.repo()
 
     orig(node)
 
--- a/hgext/largefiles/overrides.py	Thu Mar 12 23:05:25 2015 -0400
+++ b/hgext/largefiles/overrides.py	Thu Mar 12 23:08:16 2015 -0400
@@ -760,7 +760,7 @@
             # currently doesn't work correctly in that case, this match is
             # called, so the lfdirstate above may not be the correct one for
             # this invocation of match.
-            lfdirstate = lfutil.openlfdirstate(ctx._repo.ui, ctx._repo, False)
+            lfdirstate = lfutil.openlfdirstate(ctx.repo().ui, ctx.repo(), False)
 
             def tostandin(f):
                 if lfutil.standin(f) in ctx: