Show More
@@ -271,35 +271,6 b' class remotefilelog(object):' | |||
|
271 | 271 | delta=delta, |
|
272 | 272 | ) |
|
273 | 273 | |
|
274 | def emitrevisiondeltas(self, requests): | |
|
275 | prevnode = None | |
|
276 | for request in requests: | |
|
277 | node = request.node | |
|
278 | p1, p2 = self.parents(node) | |
|
279 | if prevnode is None: | |
|
280 | prevnode = p1 | |
|
281 | if request.basenode is not None: | |
|
282 | basenode = request.basenode | |
|
283 | else: | |
|
284 | basenode = p1 | |
|
285 | if basenode == nullid: | |
|
286 | revision = self.revision(node, raw=True) | |
|
287 | delta = None | |
|
288 | else: | |
|
289 | revision = None | |
|
290 | delta = self.revdiff(basenode, node) | |
|
291 | yield revlog.revlogrevisiondelta( | |
|
292 | node=node, | |
|
293 | p1node=p1, | |
|
294 | p2node=p2, | |
|
295 | linknode=self.linknode(node), | |
|
296 | basenode=basenode, | |
|
297 | flags=self.flags(node), | |
|
298 | baserevisionsize=None, | |
|
299 | revision=revision, | |
|
300 | delta=delta, | |
|
301 | ) | |
|
302 | ||
|
303 | 274 | def revdiff(self, node1, node2): |
|
304 | 275 | return mdiff.textdiff(self.revision(node1, raw=True), |
|
305 | 276 | self.revision(node2, raw=True)) |
General Comments 0
You need to be logged in to leave comments.
Login now