mercurial/obsolete.py
changeset 22335 7c4c19dfd484
parent 22334 f2c3cfc30e9c
child 22339 9680da73cfe0
--- 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.