Mercurial > hg-stable
changeset 22422:75bb7c702317
filelog: parsemeta stops returning unused key list
Currently, only the returned meta dictionary is used. An upcoming change will
use the returned text offset.
author | Mike Edgar <adgar@google.com> |
---|---|
date | Tue, 02 Sep 2014 14:42:30 -0400 |
parents | 30a610424eff |
children | edf07a804ac4 |
files | mercurial/filelog.py |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/filelog.py Wed Sep 10 00:18:15 2014 -0400 +++ b/mercurial/filelog.py Tue Sep 02 14:42:30 2014 -0400 @@ -13,16 +13,14 @@ """return (metadatadict, keylist, metadatasize)""" # text can be buffer, so we can't use .startswith or .index if text[:2] != '\1\n': - return None, None, None + return None, None s = _mdre.search(text, 2).start() mtext = text[2:s] meta = {} - keys = [] for l in mtext.splitlines(): k, v = l.split(": ", 1) meta[k] = v - keys.append(k) - return meta, keys, (s + 2) + return meta, (s + 2) def packmeta(meta, text): keys = sorted(meta.iterkeys())