diff hgsubversion/stupid.py @ 1565:8a66277136ab

cleanup: use __getitem__ instead of .changectx on localrepo
author Augie Fackler <raf@durin42.com>
date Fri, 20 Apr 2018 15:47:08 -0400
parents ae572c9be4e6
children 7bb6562feb85
line wrap: on
line diff
--- a/hgsubversion/stupid.py
+++ b/hgsubversion/stupid.py
@@ -374,7 +374,7 @@ def makecopyfinder(meta, r, branchpath):
         changeid = meta.get_parent_revision(svnrev + 1, branch, True)
         ctx = None
         if changeid != revlog.nullid:
-            ctx = meta.repo.changectx(changeid)
+            ctx = meta.repo[changeid]
         ctxs[svnrev] = ctx
         return ctx