diff push_cmd.py @ 241:4950b18cf949

Move fetch_command.fetch_revisions() to svncommands.pull().
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Wed, 08 Apr 2009 17:49:30 +0200
parents 33e885f5f86a
children
line wrap: on
line diff
--- a/push_cmd.py
+++ b/push_cmd.py
@@ -7,7 +7,7 @@ import util
 import hg_delta_editor
 import svnexternals
 import svnwrap
-import fetch_command
+import svncommands
 import utility_commands
 
 
@@ -68,9 +68,8 @@ def push_revisions_to_subversion(ui, rep
                      old_ctx)
             return 1
         # 3. Fetch revisions from svn
-        r = fetch_command.fetch_revisions(ui, svn_url, hg_repo_path,
-                                          stupid=stupid, username=user,
-                                          password=passwd)
+        r = svncommands.pull(ui, svn_url, hg_repo_path, stupid=stupid,
+                             username=user, password=passwd)
         assert not r or r == 0
         # 4. Find the new head of the target branch
         repo = hg.repository(ui, hge.path)