##// END OF EJS Templates
filelog: add file function to open other filelogs
Sune Foldager -
r14287:7c231754 default
parent child Browse files
Show More
@@ -150,10 +150,14 b' class bundlemanifest(bundlerevlog, manif'
150 linkmapper)
150 linkmapper)
151
151
152 class bundlefilelog(bundlerevlog, filelog.filelog):
152 class bundlefilelog(bundlerevlog, filelog.filelog):
153 def __init__(self, opener, path, bundle, linkmapper):
153 def __init__(self, opener, path, bundle, linkmapper, repo):
154 filelog.filelog.__init__(self, opener, path)
154 filelog.filelog.__init__(self, opener, path)
155 bundlerevlog.__init__(self, opener, self.indexfile, bundle,
155 bundlerevlog.__init__(self, opener, self.indexfile, bundle,
156 linkmapper)
156 linkmapper)
157 self._repo = repo
158
159 def _file(self, f):
160 self._repo.file(f)
157
161
158 class bundlerepository(localrepo.localrepository):
162 class bundlerepository(localrepo.localrepository):
159 def __init__(self, ui, path, bundlename):
163 def __init__(self, ui, path, bundlename):
@@ -244,7 +248,7 b' class bundlerepository(localrepo.localre'
244 if f in self.bundlefilespos:
248 if f in self.bundlefilespos:
245 self.bundle.seek(self.bundlefilespos[f])
249 self.bundle.seek(self.bundlefilespos[f])
246 return bundlefilelog(self.sopener, f, self.bundle,
250 return bundlefilelog(self.sopener, f, self.bundle,
247 self.changelog.rev)
251 self.changelog.rev, self)
248 else:
252 else:
249 return filelog.filelog(self.sopener, f)
253 return filelog.filelog(self.sopener, f)
250
254
@@ -87,3 +87,6 b' class filelog(revlog.revlog):'
87 return t2 != text
87 return t2 != text
88
88
89 return True
89 return True
90
91 def _file(self, f):
92 return filelog(self.opener, f)
General Comments 0
You need to be logged in to leave comments. Login now