Commits

Sean Farley committed 729becb

maps: call util.dump instead save_string

Now that we're using json, we can use one centralized way of serializing data.

Comments (0)

Files changed (1)

hgsubversion/maps.py

 
     def _set_youngest(self, rev):
         self._youngest = max(self._youngest, rev)
-        util.save_string(self.ypath, str(self._youngest) + '\n')
+        util.dump(self._youngest, self.ypath)
 
     def _get_youngest(self):
         return self._youngest