obsolete: _rename encodemeta to _fm0encodemeta
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 08 Oct 2014 22:11:36 -0700
changeset 22846 b1efc4893da4
parent 22845 ef880e28e56a
child 22847 37460ee2003c
obsolete: _rename encodemeta to _fm0encodemeta This will be format zero specific.
mercurial/obsolete.py
--- 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."""