diff fetch_command.py @ 198:df4611050286

Output consolidation; decrease the ‘Fetching...’ message to debug level.
author Dan Villiom Podlaski Christiansen <danchr@cs.au.dk>
date Thu, 12 Feb 2009 15:10:42 +0100
parents 43d56e973c3c
children 2e8c527f0456
line wrap: on
line diff
--- a/fetch_command.py
+++ b/fetch_command.py
@@ -81,7 +81,7 @@ def fetch_revisions(ui, svn_url, hg_repo
             converted = False
             while not converted and tries < 3:
                 try:
-                    ui.status(util.describe_revision(r))
+                    util.describe_revision(ui, r)
                     if have_replay:
                         try:
                             replay_convert_rev(hg_editor, svn, r)
@@ -120,8 +120,8 @@ def replay_convert_rev(hg_editor, svn, r
     svn.get_replay(r.revnum, hg_editor)
     i = 1
     if hg_editor.missing_plaintexts:
-        hg_editor.ui.status('Fetching %s files that could not use replay.\n' %
-                            len(hg_editor.missing_plaintexts))
+        hg_editor.ui.debug('Fetching %s files that could not use replay.\n' %
+                           len(hg_editor.missing_plaintexts))
         files_to_grab = set()
         rootpath = svn.subdir and svn.subdir[1:] or ''
         for p in hg_editor.missing_plaintexts:
@@ -595,7 +595,7 @@ def stupid_svn_server_pull_rev(ui, svn, 
             ha = hg_editor.repo.commitctx(current_ctx)
             hg_editor.add_to_revmap(r.revnum, b, ha)
             hg_editor._save_metadata()
-            ui.status(util.describe_commit(ha, b))
+            util.describe_commit(ui, ha, b)
     # These are branches which would have an 'R' status in svn log. This means they were
     # replaced by some other branch, so we need to verify they get marked as closed.
     for branch in check_deleted_branches: