obsolete: _rename decodemeta to _fm0decodemeta
This will be format zero specific.
--- a/mercurial/obsolete.py Wed Oct 08 22:11:36 2014 -0700
+++ b/mercurial/obsolete.py Wed Oct 08 22:12:06 2014 -0700
@@ -162,7 +162,7 @@
'short, %d bytes expected, got %d')
% (mdsize, len(metadata)))
off += mdsize
- metadata = decodemeta(metadata)
+ metadata = _fm0decodemeta(metadata)
try:
when, offset = metadata.pop('date', '0 0').split(' ')
date = float(when), int(offset)
@@ -243,7 +243,7 @@
raise ValueError("':' is forbidden in metadata value'")
return '\0'.join(['%s:%s' % (k, meta[k]) for k in sorted(meta)])
-def decodemeta(data):
+def _fm0decodemeta(data):
"""Return string to string dictionary from encoded version."""
d = {}
for l in data.split('\0'):