Mercurial > hgsubversion
diff hgsubversion/layouts/standard.py @ 1129:063cae4e35af
layouts: use util.load instead of bare pickle
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Fri, 23 Aug 2013 10:57:09 -0500 |
parents | eaefb3413b87 |
children | c3c4518e00aa |
line wrap: on
line diff
--- a/hgsubversion/layouts/standard.py +++ b/hgsubversion/layouts/standard.py @@ -1,5 +1,4 @@ import os.path -import pickle import base @@ -67,12 +66,9 @@ class StandardLayout(base.BaseLayout): if self._tag_locations is None: tag_locations_file = os.path.join(meta_data_dir, 'tag_locations') + self._tag_locations = util.load(tag_locations_file) - if os.path.exists(tag_locations_file): - f = open(tag_locations_file) - self._tag_locations = pickle.load(f) - f.close() - else: + if not self._tag_locations: self._tag_locations = self.ui.configlist('hgsubversion', 'tagpaths', ['tags'])