You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2012/05/08 19:24:34 UTC

svn commit: r1335651 - in /subversion/trunk/subversion: svn/main.c tests/cmdline/getopt_tests_data/svn_help_log_switch_stdout

Author: stsp
Date: Tue May  8 17:24:33 2012
New Revision: 1335651

URL: http://svn.apache.org/viewvc?rev=1335651&view=rev
Log:
In the output of 'svn help log', provide an example that shows how
to view log messages for any changes the next 'svn update' will apply.

* subversion/svn/main.c
  (svn_cl__cmd_table): Add an example to 'svn help log': svn log -rBASE:HEAD

* subversion/tests/cmdline/getopt_tests_data/svn_help_log_switch_stdout:
    Adjust expected output.

Inspired by: anatoly techtonik
http://svn.haxx.se/users/archive-2012-05/0098.shtml

Modified:
    subversion/trunk/subversion/svn/main.c
    subversion/trunk/subversion/tests/cmdline/getopt_tests_data/svn_help_log_switch_stdout

Modified: subversion/trunk/subversion/svn/main.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/main.c?rev=1335651&r1=1335650&r2=1335651&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/main.c (original)
+++ subversion/trunk/subversion/svn/main.c Tue May  8 17:24:33 2012
@@ -681,6 +681,10 @@ const svn_opt_subcommand_desc2_t svn_cl_
      "    svn log http://www.example.com/repo/project foo.c bar.c\n"
      "    svn log http://www.example.com/repo/project@50 foo.c bar.c\n"
      "\n"
+     "    This command shows the log messages for any incoming changes\n"
+     "    the next 'svn update' will apply:\n"
+     "      svn log -rBASE:HEAD\n"
+     "\n"
      "    This command shows the log entry for the revision the branch\n"
      "    ^/branches/foo was created in:\n"
      "      svn log --stop-on-copy --limit 1 -r0:HEAD ^/branches/foo\n"),

Modified: subversion/trunk/subversion/tests/cmdline/getopt_tests_data/svn_help_log_switch_stdout
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/getopt_tests_data/svn_help_log_switch_stdout?rev=1335651&r1=1335650&r2=1335651&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/getopt_tests_data/svn_help_log_switch_stdout (original)
+++ subversion/trunk/subversion/tests/cmdline/getopt_tests_data/svn_help_log_switch_stdout Tue May  8 17:24:33 2012
@@ -38,6 +38,10 @@ usage: 1. log [PATH][@REV]
     svn log http://www.example.com/repo/project foo.c bar.c
     svn log http://www.example.com/repo/project@50 foo.c bar.c
 
+    This command shows the log messages for any incoming changes
+    the next 'svn update' will apply:
+      svn log -rBASE:HEAD
+
     This command shows the log entry for the revision the branch
     ^/branches/foo was created in:
       svn log --stop-on-copy --limit 1 -r0:HEAD ^/branches/foo