tests/simplestorerepo.py
changeset 46509 7a93b7b3dc2d
parent 45788 a5206e71c536
child 46709 3d740058b467
--- 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