Commits

Sean Farley  committed 0a55d7c

svncommands: use util.load instead of bare pickle

  • Participants
  • Parent commits a44b653

Comments (0)

Files changed (1)

File hgsubversion/svncommands.py

 import os
 import posixpath
-import cPickle as pickle
 import sys
 import traceback
 import urlparse
                 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')