Mercurial > hg
comparison hgext/sqlitestore.py @ 40437:a0e7fa019290
storage: update sqlitestore to use the new `deltamode` parameter
While updating the filelog class, I forget to update the sqlitestore, tests
are now passing with this patch.
Differential Revision: https://phab.mercurial-scm.org/D5185
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Tue, 23 Oct 2018 19:20:22 +0200 |
parents | 3b782669561d |
children | 4fe63b573791 |
comparison
equal
deleted
inserted
replaced
40436:30a7d3b6b281 | 40437:a0e7fa019290 |
---|---|
557 | 557 |
558 def cmp(self, node, fulltext): | 558 def cmp(self, node, fulltext): |
559 return not storageutil.filedataequivalent(self, node, fulltext) | 559 return not storageutil.filedataequivalent(self, node, fulltext) |
560 | 560 |
561 def emitrevisions(self, nodes, nodesorder=None, revisiondata=False, | 561 def emitrevisions(self, nodes, nodesorder=None, revisiondata=False, |
562 assumehaveparentrevisions=False, deltaprevious=False): | 562 assumehaveparentrevisions=False, |
563 deltamode=repository.CG_DELTAMODE_STD): | |
563 if nodesorder not in ('nodes', 'storage', None): | 564 if nodesorder not in ('nodes', 'storage', None): |
564 raise error.ProgrammingError('unhandled value for nodesorder: %s' % | 565 raise error.ProgrammingError('unhandled value for nodesorder: %s' % |
565 nodesorder) | 566 nodesorder) |
566 | 567 |
567 nodes = [n for n in nodes if n != nullid] | 568 nodes = [n for n in nodes if n != nullid] |
588 for delta in storageutil.emitrevisions( | 589 for delta in storageutil.emitrevisions( |
589 self, nodes, nodesorder, sqliterevisiondelta, | 590 self, nodes, nodesorder, sqliterevisiondelta, |
590 deltaparentfn=deltabases.__getitem__, | 591 deltaparentfn=deltabases.__getitem__, |
591 revisiondata=revisiondata, | 592 revisiondata=revisiondata, |
592 assumehaveparentrevisions=assumehaveparentrevisions, | 593 assumehaveparentrevisions=assumehaveparentrevisions, |
593 deltaprevious=deltaprevious): | 594 deltamode=deltamode): |
594 | 595 |
595 yield delta | 596 yield delta |
596 | 597 |
597 # End of ifiledata interface. | 598 # End of ifiledata interface. |
598 | 599 |