changeset 1131:a44b65337f2f

svncommands: use util.dump instead of pickle.dump
author Sean Farley <sean.michael.farley@gmail.com>
date Fri, 23 Aug 2013 20:35:05 -0500
parents ed4804ee68c4
children 0a55d7c9a071
files hgsubversion/svncommands.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/svncommands.py
+++ b/hgsubversion/svncommands.py
@@ -304,9 +304,7 @@ def _buildmeta(ui, repo, args, partial=F
     ui.progress('rebuild', None, total=numrevs)
 
     # save off branch info
-    branchinfofile = open(os.path.join(svnmetadir, 'branch_info'), 'w')
-    pickle.dump(branchinfo, branchinfofile)
-    branchinfofile.close()
+    util.dump(branchinfo, os.path.join(svnmetadir, 'branch_info'))
 
 
 def help_(ui, args=None, **opts):