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 77FE118BE1 for ; Wed, 28 Oct 2015 16:29:59 +0000 (UTC) Received: (qmail 54607 invoked by uid 500); 28 Oct 2015 16:29:59 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 54572 invoked by uid 500); 28 Oct 2015 16:29:59 -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 54561 invoked by uid 99); 28 Oct 2015 16:29:59 -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 16:29:59 +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 C33111A2E37 for ; Wed, 28 Oct 2015 16:29:58 +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 o2Rfklx0p81F for ; Wed, 28 Oct 2015 16:29:46 +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 69E1620F10 for ; Wed, 28 Oct 2015 16:29:45 +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 B2DD0E0232 for ; Wed, 28 Oct 2015 16:29:44 +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 B14843A0178 for ; Wed, 28 Oct 2015 16:29:44 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1711048 - /subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c Date: Wed, 28 Oct 2015 16:29:44 -0000 To: commits@subversion.apache.org From: julianfoad@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20151028162944.B14843A0178@svn01-us-west.apache.org> Author: julianfoad Date: Wed Oct 28 16:29:44 2015 New Revision: 1711048 URL: http://svn.apache.org/viewvc?rev=1711048&view=rev Log: On the 'move-tracking-2' branch: Tweak 'svnmover' notifications. * subversion/svnmover/svnmover.c (svnmover_notify_v): Print these verbose-mode-only notifications in blue instead of green. (list_branch):Use a normal notification, not verbose-mode-only, for the branch description. (execute): Let the 'info-wc' subcommand also state whether the WC has modifications. 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=1711048&r1=1711047&r2=1711048&view=diff ============================================================================== --- subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c (original) +++ subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c Wed Oct 28 16:29:44 2015 @@ -175,7 +175,7 @@ svnmover_notify_v(const char *fmt, if (! quiet) { - settext(TEXT_FG_GREEN); + settext(TEXT_FG_BLUE); va_start(ap, fmt); vprintf(fmt, ap); va_end(ap); @@ -1175,7 +1175,7 @@ list_branch(svn_branch_state_t *branch, svn_boolean_t with_elements, apr_pool_t *scratch_pool) { - svnmover_notify_v(" %s", branch_id_str(branch, scratch_pool)); + svnmover_notify(" %s", branch_id_str(branch, scratch_pool)); if (with_elements) { @@ -2686,10 +2686,17 @@ execute(svnmover_wc_t *wc, switch (action->action) { case ACTION_INFO_WC: - svnmover_notify("Repository Root: %s", wc->repos_root_url); - svnmover_notify("Base Revision: %ld", wc->base->revision); - svnmover_notify("Base Branch: %s", wc->base->branch_id); - svnmover_notify("Working Branch: %s", wc->working->branch_id); + { + svn_boolean_t is_modified; + + SVN_ERR(txn_is_changed(wc->working->branch->txn, &is_modified, + iterpool)); + svnmover_notify("Repository Root: %s", wc->repos_root_url); + svnmover_notify("Base Revision: %ld", wc->base->revision); + svnmover_notify("Base Branch: %s", wc->base->branch_id); + svnmover_notify("Working Branch: %s", wc->working->branch_id); + svnmover_notify("Modified: %s", is_modified ? "yes" : "no"); + } break; case ACTION_DIFF: