[PATCH 5 of 5 v2] treemanifest: rewrite text() using iterentries()
Augie Fackler
raf at durin42.com
Tue Feb 23 14:39:35 EST 2016
On Sun, Feb 21, 2016 at 11:12:31PM -0800, Martin von Zweigbergk wrote:
> # HG changeset patch
> # User Martin von Zweigbergk <martinvonz at google.com>
> # Date 1456041441 28800
> # Sat Feb 20 23:57:21 2016 -0800
> # Node ID e981ca88f73c9cf90e14b60b2794aa156fa30cbd
> # Parent 6d391c0d22e1363d53f763a9d054dbed4ce2dc08
> # Available At http://42.netv6.net/martinvonz-wip/mercurial/
> # hg pull http://42.netv6.net/martinvonz-wip/mercurial/
> -r e981ca88f73c
> treemanifest: rewrite text() using iterentries()
Queued these, very nice.
>
> This simplifies a bit. Note that the function is only used when
> manually testing with _treeinmem=True.
>
> diff -r 6d391c0d22e1 -r e981ca88f73c mercurial/manifest.py
> --- 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
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
More information about the Mercurial-devel
mailing list