changeset 5328:8d00788ca578

manifest: minor performance tweak
author Matt Mackall <mpm@selenic.com>
date Mon, 24 Sep 2007 12:42:25 -0500
parents f46ab9cacd3c
children 24de027551c1
files mercurial/manifest.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/manifest.py	Mon Sep 24 12:41:54 2007 -0500
+++ b/mercurial/manifest.py	Mon Sep 24 12:42:25 2007 -0500
@@ -38,10 +38,11 @@
 
     def parse(self, lines):
         mfdict = manifestdict()
+        fdict = mfdict._flags
         for l in lines.splitlines():
             f, n = l.split('\0')
             if len(n) > 40:
-                mfdict._flags[f] = n[40:]
+                fdict[f] = n[40:]
                 mfdict[f] = bin(n[:40])
             else:
                 mfdict[f] = bin(n)