changeset 28207:43edd3003456

treemanifest: rewrite text() using iterentries() This simplifies a bit. Note that the function is only used when manually testing with _treeinmem=True.
author Martin von Zweigbergk <martinvonz@google.com>
date Sat, 20 Feb 2016 23:57:21 -0800
parents 8ab91d9290ce
children f4418ff2f700
files mercurial/manifest.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/manifest.py	Sun Feb 07 21:14:01 2016 -0800
+++ b/mercurial/manifest.py	Sat Feb 20 23:57:21 2016 -0800
@@ -861,9 +861,7 @@
     def text(self, usemanifestv2=False):
         """Get the full data of this manifest as a bytestring."""
         self._load()
-        flags = self.flags
-        return _text(((f, self[f], flags(f)) for f in self.keys()),
-                     usemanifestv2)
+        return _text(self.iterentries(), usemanifestv2)
 
     def dirtext(self, usemanifestv2=False):
         """Get the full data of this directory as a bytestring. Make sure that