changeset 863:a7e95e3606c7

Use length of file instead of length of change for the dirstate entry.
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 10 Aug 2005 07:51:37 +0100
parents d70c1c31fd45
children 6225bd773c51
files mercurial/hg.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hg.py	Wed Aug 10 06:47:46 2005 +0100
+++ b/mercurial/hg.py	Wed Aug 10 07:51:37 2005 +0100
@@ -1584,7 +1584,7 @@
                     m1n = self.changelog.read(p1)[0]
                     m1 = self.manifest.read(m1n)
                     file_ = self.file(f)
-                    f_len = file_.length(file_.rev(m1[f]))
+                    f_len = len(file_.read(m1[f]))
                     self.dirstate.update([f], mode, st_size=f_len, st_mtime=0)
                 else:
                     self.ui.warn("Second parent without branch merge!?\n"