Mercurial > hg
comparison hgext/remotefilelog/remotefilelog.py @ 40500:b67854106edb
remotefilelog: prune obsolete method
Differential Revision: https://phab.mercurial-scm.org/D4940
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 03 Oct 2018 17:18:20 -0400 |
parents | 3a333a582d7b |
children | 9769e0f6ffe0 |
comparison
equal
deleted
inserted
replaced
40499:2e09d1cae90c | 40500:b67854106edb |
---|---|
269 baserevisionsize=None, | 269 baserevisionsize=None, |
270 revision=revision, | 270 revision=revision, |
271 delta=delta, | 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 def revdiff(self, node1, node2): | 274 def revdiff(self, node1, node2): |
304 return mdiff.textdiff(self.revision(node1, raw=True), | 275 return mdiff.textdiff(self.revision(node1, raw=True), |
305 self.revision(node2, raw=True)) | 276 self.revision(node2, raw=True)) |
306 | 277 |
307 def lookup(self, node): | 278 def lookup(self, node): |