Mercurial > hg
changeset 22329:ed37aa74d208
obsolete: rename _encodeonemarker to _fm0encodeonemarkers
This function encodes markers in version 0 of the format.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 25 Aug 2014 16:43:23 +0200 |
parents | fba8c1a4ce21 |
children | e74f8a65252d |
files | mercurial/obsolete.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/obsolete.py Mon Aug 25 14:58:11 2014 +0200 +++ b/mercurial/obsolete.py Mon Aug 25 16:43:23 2014 +0200 @@ -427,10 +427,10 @@ if addheader: yield _pack('>B', _fm0version) for marker in markers: - yield _encodeonemarker(marker) + yield _fm0encodeonemarker(marker) -def _encodeonemarker(marker): +def _fm0encodeonemarker(marker): pre, sucs, flags, metadata, date, parents = marker metadata = decodemeta(metadata) metadata['date'] = '%d %i' % date @@ -462,7 +462,7 @@ parts = [] currentlen = _maxpayload * 2 # ensure we create a new part for marker in markers: - nextdata = _encodeonemarker(marker) + nextdata = _fm0encodeonemarker(marker) if (len(nextdata) + currentlen > _maxpayload): currentpart = [] currentlen = 0