revlog: fix inlined revision transaction extra data (issue 749)
authorPatrick Mezard <pmezard@gmail.com>
Sun, 23 Sep 2007 18:24:19 +0200
changeset 5324 8409a2e3a78d
parent 5323 46455285c6b5
child 5325 5971cfc0a56a
revlog: fix inlined revision transaction extra data (issue 749)
mercurial/revlog.py
--- a/mercurial/revlog.py	Sun Sep 23 15:29:58 2007 +0200
+++ b/mercurial/revlog.py	Sun Sep 23 18:24:19 2007 +0200
@@ -1037,7 +1037,7 @@
             ifh.write(entry)
         else:
             offset += curr * self._io.size
-            transaction.add(self.indexfile, offset, prev)
+            transaction.add(self.indexfile, offset, curr)
             ifh.write(entry)
             ifh.write(data[0])
             ifh.write(data[1])