# HG changeset patch # User Mike Edgar # Date 2014-09-02 18:42:30 # Node ID 75bb7c702317dabee6356ef516e6de6a0ca670b5 # Parent 30a610424eff73d92aeb3e467cfa7b8ca16fc01c filelog: parsemeta stops returning unused key list Currently, only the returned meta dictionary is used. An upcoming change will use the returned text offset. diff --git a/mercurial/filelog.py b/mercurial/filelog.py --- a/mercurial/filelog.py +++ b/mercurial/filelog.py @@ -13,16 +13,14 @@ def parsemeta(text): """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())