hgext/record.py
changeset 11728 226a328a7ff3
parent 11564 9bbfeba33aa3
child 12266 00658492e2aa
--- a/hgext/record.py	Sun Aug 01 13:52:42 2010 -0500
+++ b/hgext/record.py	Thu Jul 22 18:47:46 2010 +0300
@@ -97,7 +97,7 @@
             if h.startswith('---'):
                 fp.write(_('%d hunks, %d lines changed\n') %
                          (len(self.hunks),
-                          sum([h.added + h.removed for h in self.hunks])))
+                          sum([max(h.added, h.removed) for h in self.hunks])))
                 break
             fp.write(h)