mercurial/revlog.py
changeset 41 df3f46253878
parent 36 da28286bf6b7
child 45 f2b2d5daec30
--- a/mercurial/revlog.py	Sat May 07 16:33:09 2005 -0800
+++ b/mercurial/revlog.py	Sat May 07 16:33:31 2005 -0800
@@ -163,7 +163,7 @@
 
         transaction.add(self.datafile, e[0])
         self.opener(self.datafile, "a").write(data)
-        transaction.add(self.indexfile, (n + 1) * len(entry))
+        transaction.add(self.indexfile, n * len(entry))
         self.opener(self.indexfile, "a").write(entry)
 
         self.cache = (node, n, text)