Mercurial > hg
changeset 22335:7c4c19dfd484
obsolete: make encodemarkers a public function
We'll need access to it for bundle2.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 25 Aug 2014 16:24:40 +0200 |
parents | f2c3cfc30e9c |
children | 60786c8a2f70 |
files | mercurial/obsolete.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/obsolete.py Mon Aug 25 16:21:33 2014 +0200 +++ b/mercurial/obsolete.py Mon Aug 25 16:24:40 2014 +0200 @@ -147,7 +147,7 @@ % diskversion) return diskversion, formats[diskversion][0](data, off) -def _encodemarkers(markers, addheader=False, version=_fm0version): +def encodemarkers(markers, addheader=False, version=_fm0version): # Kept separate from flushmarkers(), it will be reused for # markers exchange. encodeone = formats[version][1] @@ -391,7 +391,7 @@ offset = f.tell() transaction.add('obsstore', offset) # offset == 0: new file - add the version header - for bytes in _encodemarkers(new, offset == 0, self._version): + for bytes in encodemarkers(new, offset == 0, self._version): f.write(bytes) finally: # XXX: f.close() == filecache invalidation == obsstore rebuilt.