Author: stsp
Date: Mon Feb 25 18:18:26 2013
New Revision: 1449795
URL: http://svn.apache.org/r1449795
Log:
* subversion/svn/svn.c
(sub_main): Be kind to people who try 'svn undo' and point them towards
trying 'svn revert' or 'svn merge' instead.
Modified:
subversion/trunk/subversion/svn/svn.c
Modified: subversion/trunk/subversion/svn/svn.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/svn.c?rev=1449795&r1=1449794&r2=1449795&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/svn.c (original)
+++ subversion/trunk/subversion/svn/svn.c Mon Feb 25 18:18:26 2013
@@ -2316,6 +2316,17 @@ sub_main(int argc, const char *argv[], a
_("Unknown subcommand: '%s'\n"),
first_arg_utf8));
svn_cl__help(NULL, NULL, pool);
+
+ /* Be kind to people who try 'svn undo'. */
+ if (strcmp(first_arg_utf8, "undo") == 0)
+ {
+ svn_error_clear
+ (svn_cmdline_fprintf(stderr, pool,
+ _("Undo is done using either the "
+ "'svn revert' or the 'svn merge' "
+ "command.\n")));
+ }
+
return EXIT_FAILURE;
}
}