Mercurial > hgsubversion
diff push_cmd.py @ 99:1da7aafdd323
Refactored outgoing_revisions into util where it really belongs.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Fri, 21 Nov 2008 16:11:24 -0600 |
parents | 6ecdbd22eb1d |
children | 58ae90a65f41 |
line wrap: on
line diff
--- a/push_cmd.py +++ b/push_cmd.py @@ -23,8 +23,7 @@ def push_revisions_to_subversion(ui, rep hge.revmap.iterkeys())) # Strategy: # 1. Find all outgoing commits from this head - outgoing = utility_commands.outgoing_revisions(ui, repo, hge, - svn_commit_hashes) + outgoing = util.outgoing_revisions(ui, repo, hge, svn_commit_hashes) if not (outgoing and len(outgoing)): ui.status('No revisions to push.') return 0 @@ -65,8 +64,8 @@ def push_revisions_to_subversion(ui, rep hge = hg_delta_editor.HgChangeReceiver(hg_repo_path, ui_=ui) svn_commit_hashes = dict(zip(hge.revmap.itervalues(), hge.revmap.iterkeys())) - outgoing = utility_commands.outgoing_revisions(ui, repo, hge, - svn_commit_hashes) + outgoing = util.outgoing_revisions(ui, repo, hge, + svn_commit_hashes) merc_util._encoding = oldencoding return 0