Author: julianfoad
Date: Fri Aug 21 13:27:45 2015
New Revision: 1696969
URL: http://svn.apache.org/r1696969
Log:
On the 'move-tracking-2' branch: Add an 'svnmover info-wc' subcommand that
prints the WC URL, revision, and base and working branch ids.
* subversion/svnmover/svnmover.c
(action_code_t,
action_defn): Add an 'info-wc' subcommand.
(execute): Implement it.
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=1696969&r1=1696968&r2=1696969&view=diff
==============================================================================
--- subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c
(original)
+++ subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c Fri Aug
21 13:27:45 2015
@@ -571,6 +571,7 @@ wc_commit(svn_revnum_t *new_rev_p,
}
typedef enum action_code_t {
+ ACTION_INFO_WC,
ACTION_DIFF,
ACTION_LOG,
ACTION_LIST_BRANCHES,
@@ -604,6 +605,8 @@ typedef struct action_defn_t {
#define NL "\n "
static const action_defn_t action_defn[] =
{
+ {ACTION_INFO_WC, "info-wc", 0, "",
+ "print information about the WC"},
{ACTION_LIST_BRANCHES, "branches", 1, "PATH",
"list all branches rooted at the same element as PATH"},
{ACTION_LIST_BRANCHES_R, "ls-br-r", 0, "",
@@ -2681,6 +2684,13 @@ 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);
+ break;
+
case ACTION_DIFF:
VERIFY_EID_EXISTS("diff", 0);
VERIFY_EID_EXISTS("diff", 1);