diff hgsubversion/maps.py @ 1142:f4a32d381e03

util: remove all calls to load_string Now that we use json, we no longer need to load strings differently from any other serialized data.
author Sean Farley <sean.michael.farley@gmail.com>
date Sat, 15 Feb 2014 10:45:51 -0600
parents e015cd34168d
children 729becb9154b
line wrap: on
line diff
--- a/hgsubversion/maps.py
+++ b/hgsubversion/maps.py
@@ -203,8 +203,7 @@ class RevMap(dict):
         # file to svnmeta itself rather than leaving it here.
         # must load youngest file first, or else self._load() can
         # clobber the info
-        _yonngest_str = util.load_string(self.ypath, '0')
-        self._youngest = int(_yonngest_str.strip())
+        self._youngest = util.load(self.ypath, 0)
         self.oldest = 0
         if os.path.isfile(self.path):
             self._load()