Mercurial > hgsubversion
diff hgsubversion/editor.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 |
line wrap: on
line diff
--- a/hgsubversion/editor.py +++ b/hgsubversion/editor.py @@ -202,7 +202,7 @@ class HgEditor(svnwrap.Editor): # A mapping of file paths to batons self._openpaths = {} self._deleted = set() - self._getctx = hgutil.lrucachefunc(self.repo.changectx) + self._getctx = hgutil.lrucachefunc(self.repo.__getitem__) # A map from directory baton to path self._opendirs = {} self._missing = set()