changeset 22847:37460ee2003c

obsolete: _rename decodemeta to _fm0decodemeta This will be format zero specific.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 08 Oct 2014 22:12:06 -0700
parents b1efc4893da4
children 72100c1d53d4
files mercurial/obsolete.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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'):