Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0154118096 for ; Wed, 28 Oct 2015 12:33:10 +0000 (UTC) Received: (qmail 99500 invoked by uid 500); 28 Oct 2015 12:33:09 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 99468 invoked by uid 500); 28 Oct 2015 12:33:09 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 99458 invoked by uid 99); 28 Oct 2015 12:33:09 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2015 12:33:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 488DC1A2DD0 for ; Wed, 28 Oct 2015 12:33:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.99 X-Spam-Level: X-Spam-Status: No, score=0.99 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id wN8QdPVZzttn for ; Wed, 28 Oct 2015 12:33:08 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id 5B4DA20FE7 for ; Wed, 28 Oct 2015 12:33:07 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 66FA2E0451 for ; Wed, 28 Oct 2015 12:33:06 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 63E583A0178 for ; Wed, 28 Oct 2015 12:33:06 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1711001 - /subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c Date: Wed, 28 Oct 2015 12:33:06 -0000 To: commits@subversion.apache.org From: julianfoad@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20151028123306.63E583A0178@svn01-us-west.apache.org> Author: julianfoad Date: Wed Oct 28 12:33:06 2015 New Revision: 1711001 URL: http://svn.apache.org/viewvc?rev=1711001&view=rev Log: On the 'move-tracking-2' branch: Display notification and debug messages more consistently. * subversion/svnmover/svnmover.c (list_branches, list_all_branches, commit_callback, migrate_replay_rev_started, migrate_replay_rev_finished, execute, parse_actions): Always use notify() for notifications and SVN_DBG() for debug messages. Modified: subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c Modified: subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c URL: http://svn.apache.org/viewvc/subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c?rev=1711001&r1=1711000&r2=1711001&view=diff ============================================================================== --- subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c (original) +++ subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c Wed Oct 28 12:33:06 2015 @@ -1164,7 +1164,7 @@ list_branches(svn_branch_txn_t *txn, SVN_ERR(list_branch(branch, with_elements, bi->iterpool)); if (with_elements) /* separate branches by a blank line */ - printf("\n"); + notify(""); } for (SVN_ARRAY_ITER(bi, branches, scratch_pool)) @@ -1185,7 +1185,7 @@ list_branches(svn_branch_txn_t *txn, } SVN_ERR(list_branch(branch, with_elements, bi->iterpool)); if (with_elements) /* separate branches by a blank line */ - printf("\n"); + notify(""); } return SVN_NO_ERROR; @@ -1212,7 +1212,7 @@ list_all_branches(svn_branch_txn_t *txn, SVN_ERR(list_branch(branch, with_elements, bi->iterpool)); if (with_elements) /* separate branches by a blank line */ - printf("\n"); + notify(""); } return SVN_NO_ERROR; @@ -2260,8 +2260,7 @@ commit_callback(const svn_commit_info_t { commit_callback_baton_t *b = baton; - SVN_ERR(svn_cmdline_printf(pool, "Committed r%ld:\n", - commit_info->revision)); + notify("Committed r%ld:", commit_info->revision); b->revision = commit_info->revision; return SVN_NO_ERROR; @@ -2371,7 +2370,7 @@ migrate_replay_rev_started(svn_revnum_t const svn_delta_editor_t *old_editor; void *old_edit_baton; - printf("DBG: migrate: start r%ld\n", revision); + SVN_DBG(("migrate: start r%ld", revision)); SVN_ERR(svn_branch_get_migration_editor(&old_editor, &old_edit_baton, rb->edit_txn, @@ -2404,7 +2403,7 @@ migrate_replay_rev_finished(svn_revnum_t SVN_ERR(editor->close_edit(edit_baton, pool)); - printf("DBG: migrate: moves in revision r%ld:\n", revision); + SVN_DBG(("migrate: moves in revision r%ld:", revision)); if (moves_in_revision) { @@ -2417,7 +2416,7 @@ migrate_replay_rev_finished(svn_revnum_t if (this_move) { - printf("%s", + notify("%s", svn_client__format_move_chain_for_display(this_move, "", pool)); } @@ -2628,10 +2627,10 @@ execute(svnmover_wc_t *wc, switch (action->action) { case ACTION_INFO_WC: - printf("Repository Root: %s\n", wc->repos_root_url); - printf("Base Revision: %ld\n", wc->base->revision); - printf("Base Branch: %s\n", wc->base->branch_id); - printf("Working Branch: %s\n", wc->working->branch_id); + notify("Repository Root: %s", wc->repos_root_url); + notify("Base Revision: %ld", wc->base->revision); + notify("Base Branch: %s", wc->base->branch_id); + notify("Working Branch: %s", wc->working->branch_id); break; case ACTION_DIFF: @@ -3291,7 +3290,7 @@ parse_actions(apr_array_header_t **actio be_quiet = !be_quiet; svn_dbg__set_quiet_mode(be_quiet); - printf("verbose debug messages %s\n", be_quiet ? "off" : "on"); + notify("verbose debug messages %s", be_quiet ? "off" : "on"); continue; } for (j = 0; j < sizeof(action_defn) / sizeof(action_defn[0]); j++)