##// END OF EJS Templates
filelog: drop `indexfile` from `filelog`...
marmoute -
r47918:8a1a51d3 default
parent child Browse files
Show More
@@ -233,7 +233,7 b' class bundlefilelog(filelog.filelog):'
233 opener,
233 opener,
234 # XXX should use the unencoded path
234 # XXX should use the unencoded path
235 target=(revlog_constants.KIND_FILELOG, path),
235 target=(revlog_constants.KIND_FILELOG, path),
236 indexfile=self.indexfile,
236 indexfile=self._revlog.indexfile,
237 cgunpacker=cgunpacker,
237 cgunpacker=cgunpacker,
238 linkmapper=linkmapper,
238 linkmapper=linkmapper,
239 )
239 )
@@ -228,18 +228,6 b' class filelog(object):'
228 storedsize=storedsize,
228 storedsize=storedsize,
229 )
229 )
230
230
231 # TODO these aren't part of the interface and aren't internal methods.
232 # Callers should be fixed to not use them.
233
234 # Used by bundlefilelog, unionfilelog.
235 @property
236 def indexfile(self):
237 return self._revlog.indexfile
238
239 @indexfile.setter
240 def indexfile(self, value):
241 self._revlog.indexfile = value
242
243 # Used by repo upgrade.
231 # Used by repo upgrade.
244 def clone(self, tr, destrevlog, **kwargs):
232 def clone(self, tr, destrevlog, **kwargs):
245 if not isinstance(destrevlog, filelog):
233 if not isinstance(destrevlog, filelog):
@@ -183,7 +183,7 b' class unionfilelog(filelog.filelog):'
183 filelog.filelog.__init__(self, opener, path)
183 filelog.filelog.__init__(self, opener, path)
184 filelog2 = filelog.filelog(opener2, path)
184 filelog2 = filelog.filelog(opener2, path)
185 self._revlog = unionrevlog(
185 self._revlog = unionrevlog(
186 opener, self.indexfile, filelog2._revlog, linkmapper
186 opener, self._revlog.indexfile, filelog2._revlog, linkmapper
187 )
187 )
188 self._repo = repo
188 self._repo = repo
189 self.repotiprev = self._revlog.repotiprev
189 self.repotiprev = self._revlog.repotiprev
General Comments 0
You need to be logged in to leave comments. Login now