Mercurial > hg-stable
diff mercurial/obsolete.py @ 22846:b1efc4893da4
obsolete: _rename encodemeta to _fm0encodemeta
This will be format zero specific.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 08 Oct 2014 22:11:36 -0700 |
parents | ef880e28e56a |
children | 37460ee2003c |
line wrap: on
line diff
--- a/mercurial/obsolete.py Wed Oct 08 22:10:15 2014 -0700 +++ b/mercurial/obsolete.py Wed Oct 08 22:11:36 2014 -0700 @@ -201,7 +201,7 @@ metadata['p0'] = '' for i, p in enumerate(parents): metadata['p%i' % (i + 1)] = node.hex(p) - metadata = encodemeta(metadata) + metadata = _fm0encodemeta(metadata) numsuc = len(sucs) format = _fm0fixed + (_fm0node * numsuc) data = [numsuc, len(metadata), flags, pre] @@ -232,7 +232,7 @@ yield encodeone(marker) -def encodemeta(meta): +def _fm0encodemeta(meta): """Return encoded metadata string to string mapping. Assume no ':' in key and no '\0' in both key and value."""