obsolete: _rename encodemeta to _fm0encodemeta
This will be format zero specific.
--- 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."""