diff mercurial/filelog.py @ 1540:8ca9f5b17257

minor optimization: save some string trash
author twaldmann@thinkmo.de
date Mon, 14 Nov 2005 02:30:19 +0200
parents 30ab5b8ee8ec
children bf4e7ef08741
line wrap: on
line diff
--- a/mercurial/filelog.py	Fri Nov 11 18:20:24 2005 -0800
+++ b/mercurial/filelog.py	Mon Nov 14 02:30:19 2005 +0200
@@ -54,7 +54,7 @@
             mt = ""
             if meta:
                 mt = [ "%s: %s\n" % (k, v) for k,v in meta.items() ]
-            text = "\1\n" + "".join(mt) + "\1\n" + text
+            text = "\1\n%s\1\n%s" % ("".join(mt), text)
         return self.addrevision(text, transaction, link, p1, p2)
 
     def renamed(self, node):