Mercurial > hg
diff tests/simplestorerepo.py @ 46509:7a93b7b3dc2d
revlog: change addgroup callbacks to take revision numbers
Differential Revision: https://phab.mercurial-scm.org/D9883
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Wed, 27 Jan 2021 02:34:51 +0100 |
parents | a5206e71c536 |
children | 3d740058b467 |
line wrap: on
line diff
--- a/tests/simplestorerepo.py Wed Jan 27 01:43:17 2021 +0100 +++ b/tests/simplestorerepo.py Wed Jan 27 02:34:51 2021 +0100 @@ -550,7 +550,7 @@ if node in self._indexbynode: if duplicaterevisioncb: - duplicaterevisioncb(self, node) + duplicaterevisioncb(self, self.rev(node)) empty = False continue @@ -560,12 +560,12 @@ else: text = mdiff.patch(self.revision(deltabase), delta) - self._addrawrevision( + rev = self._addrawrevision( node, text, transaction, linkrev, p1, p2, flags ) if addrevisioncb: - addrevisioncb(self, node) + addrevisioncb(self, rev) empty = False return not empty