Author: julianfoad
Date: Wed Nov  6 16:40:06 2019
New Revision: 1869481

URL: http://svn.apache.org/viewvc?rev=1869481&view=rev
Log:
Add 'changelist' option to 'svn info --show-item'.

* subversion/svn/info-cmd.c
  (info_item_t,
   info_item_map): Add 'changelist' item.
  (print_info_item): Print it.

* subversion/svn/svn.c
  (svn_cl__options): Document it.

Modified:
    subversion/trunk/subversion/svn/info-cmd.c
    subversion/trunk/subversion/svn/svn.c

Modified: subversion/trunk/subversion/svn/info-cmd.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/info-cmd.c?rev=1869481&r1=1869480&r2=1869481&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/info-cmd.c (original)
+++ subversion/trunk/subversion/svn/info-cmd.c Wed Nov  6 16:40:06 2019
@@ -365,7 +365,8 @@ typedef enum
   /* Working copy information */
   info_item_wc_root,
   info_item_schedule,
-  info_item_depth
+  info_item_depth,
+  info_item_changelist
 } info_item_t;
 
 /* Mapping between option keywords and info_item_t. */
@@ -392,6 +393,7 @@ static const info_item_map_t info_item_m
     { MAKE_STRING("wc-root"),             info_item_wc_root },
     { MAKE_STRING("schedule"),            info_item_schedule },
     { MAKE_STRING("depth"),               info_item_depth },
+    { MAKE_STRING("changelist"),          info_item_changelist },
   };
 #undef MAKE_STRING
 
@@ -1223,6 +1225,13 @@ print_info_item(void *baton,
                   target_path, pool));
       break;
 
+    case info_item_changelist:
+      SVN_ERR(print_info_item_string(
+                  ((info->wc_info && info->wc_info->changelist)
+                   ? info->wc_info->changelist : NULL),
+                  target_path, pool));
+      break;
+
     default:
       SVN_ERR_MALFUNCTION();
     }

Modified: subversion/trunk/subversion/svn/svn.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/svn.c?rev=1869481&r1=1869480&r2=1869481&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/svn.c (original)
+++ subversion/trunk/subversion/svn/svn.c Wed Nov  6 16:40:06 2019
@@ -471,7 +471,9 @@ const apr_getopt_option_t svn_cl__option
                           "                             "
                           "   'schedule'   'normal','add','delete','replace'\n"
                           "                             "
-                          "   'depth'      checkout depth of TARGET in WC")},
+                          "   'depth'      checkout depth of TARGET in WC\n"
+                          "                             "
+                          "   'changelist' changelist of TARGET in WC")},
 
   {"adds-as-modification", opt_adds_as_modification, 0,
                        N_("Local additions are merged with incoming 
additions\n"


Reply via email to