Mercurial > hgsubversion
changeset 1166:8a1bf7d011c3
svncommands: use meta.branch_info instead of duplicating logic
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Mon, 24 Mar 2014 11:20:43 -0500 |
parents | eba7de99c576 |
children | 4f31a0a6fc86 |
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 @@ -76,8 +76,7 @@ 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 = util.load(os.path.join(meta.metapath, - 'branch_info')) + branchinfo = util.load(meta.branch_info_file) foundpartialinfo = True if not foundpartialinfo: ui.status('missing some metadata -- doing a full rebuild\n') @@ -282,7 +281,7 @@ def _buildmeta(ui, repo, args, partial=F ui.progress('rebuild', None, total=numrevs) # save off branch info - util.dump(branchinfo, os.path.join(meta.metapath, 'branch_info')) + util.dump(branchinfo, meta.branch_info_file) def help_(ui, args=None, **opts):