changeset 1132:0a55d7c9a071

svncommands: use util.load instead of bare pickle
author Sean Farley <sean.michael.farley@gmail.com>
date Fri, 23 Aug 2013 11:00:41 -0500
parents a44b65337f2f
children ff4e102932ed
files hgsubversion/svncommands.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/svncommands.py
+++ b/hgsubversion/svncommands.py
@@ -1,6 +1,5 @@
 import os
 import posixpath
-import cPickle as pickle
 import sys
 import traceback
 import urlparse
@@ -98,8 +97,8 @@ def _buildmeta(ui, repo, args, partial=F
                 if sofar and len(sofar[-1].split(' ', 2)) > 1:
                     lasthash = sofar[-1].split(' ', 2)[1]
                     startrev = repo[lasthash].rev() + 1
-                    branchinfo = pickle.load(open(os.path.join(svnmetadir,
-                                                           'branch_info')))
+                    branchinfo = util.load(os.path.join(svnmetadir,
+                                                        'branch_info'))
                     foundpartialinfo = True
             if not foundpartialinfo:
                 ui.status('missing some metadata -- doing a full rebuild\n')