changeset 41:df3f46253878

Fix truncate logic for indices again
author mpm@selenic.com
date Sat, 07 May 2005 16:33:31 -0800
parents 5f87633e1ea2
children 91f1fa847158
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)