##// END OF EJS Templates
bundlerepo: make methods agree with base class...
Gregory Szorc -
r35038:32d079f3 default
parent child Browse files
Show More
@@ -86,7 +86,7 b' class bundlerevlog(revlog.revlog):'
86 self.bundlerevs.add(n)
86 self.bundlerevs.add(n)
87 n += 1
87 n += 1
88
88
89 def _chunk(self, rev):
89 def _chunk(self, rev, df=None):
90 # Warning: in case of bundle, the diff is against what we stored as
90 # Warning: in case of bundle, the diff is against what we stored as
91 # delta base, not against rev - 1
91 # delta base, not against rev - 1
92 # XXX: could use some caching
92 # XXX: could use some caching
@@ -108,7 +108,7 b' class bundlerevlog(revlog.revlog):'
108 return mdiff.textdiff(self.revision(rev1, raw=True),
108 return mdiff.textdiff(self.revision(rev1, raw=True),
109 self.revision(rev2, raw=True))
109 self.revision(rev2, raw=True))
110
110
111 def revision(self, nodeorrev, raw=False):
111 def revision(self, nodeorrev, _df=None, raw=False):
112 """return an uncompressed revision of a given node or revision
112 """return an uncompressed revision of a given node or revision
113 number.
113 number.
114 """
114 """
@@ -152,12 +152,15 b' class bundlerevlog(revlog.revlog):'
152 # needs to override 'baserevision' and make more specific call here.
152 # needs to override 'baserevision' and make more specific call here.
153 return revlog.revlog.revision(self, nodeorrev, raw=True)
153 return revlog.revlog.revision(self, nodeorrev, raw=True)
154
154
155 def addrevision(self, text, transaction, link, p1=None, p2=None, d=None):
155 def addrevision(self, *args, **kwargs):
156 raise NotImplementedError
157
158 def addgroup(self, *args, **kwargs):
156 raise NotImplementedError
159 raise NotImplementedError
157 def addgroup(self, deltas, transaction, addrevisioncb=None):
160
161 def strip(self, *args, **kwargs):
158 raise NotImplementedError
162 raise NotImplementedError
159 def strip(self, rev, minlink):
163
160 raise NotImplementedError
161 def checksize(self):
164 def checksize(self):
162 raise NotImplementedError
165 raise NotImplementedError
163
166
General Comments 0
You need to be logged in to leave comments. Login now