comparison 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
comparison
equal deleted inserted replaced
1564:70eb9b6b0320 1565:8a66277136ab
200 # otherwise. 200 # otherwise.
201 self._openfiles = {} 201 self._openfiles = {}
202 # A mapping of file paths to batons 202 # A mapping of file paths to batons
203 self._openpaths = {} 203 self._openpaths = {}
204 self._deleted = set() 204 self._deleted = set()
205 self._getctx = hgutil.lrucachefunc(self.repo.changectx) 205 self._getctx = hgutil.lrucachefunc(self.repo.__getitem__)
206 # A map from directory baton to path 206 # A map from directory baton to path
207 self._opendirs = {} 207 self._opendirs = {}
208 self._missing = set() 208 self._missing = set()
209 209
210 def _openfile(self, path, data, isexec, islink, copypath, create=False): 210 def _openfile(self, path, data, isexec, islink, copypath, create=False):