Author: brane
Date: Sun Nov 25 18:43:19 2018
New Revision: 1847427
URL: http://svn.apache.org/viewvc?rev=1847427&view=rev
Log:
* subversion/svn/list-cmd.c
(svn_cl__list): Do not allow --human-readable with --xml.
Modified:
subversion/trunk/subversion/svn/list-cmd.c
Modified: subversion/trunk/subversion/svn/list-cmd.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/list-cmd.c?rev=1847427&r1=1847426&r2=1847427&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/list-cmd.c (original)
+++ subversion/trunk/subversion/svn/list-cmd.c Sun Nov 25 18:43:19 2018
@@ -426,12 +426,17 @@ svn_cl__list(apr_getopt_t *os,
if (opt_state->xml)
{
- /* The XML output contains all the information, so "--verbose"
- does not apply. */
+ /* The XML output contains all the information, so "--verbose" does
+ not apply, and using "--human-readable" with machine-readable
+ output does not make sense. */
if (opt_state->verbose)
return svn_error_create(
SVN_ERR_CL_ARG_PARSING_ERROR, NULL,
_("--verbose is not valid in --xml mode"));
+ if (opt_state->human_readable)
+ return svn_error_create(
+ SVN_ERR_CL_ARG_PARSING_ERROR, NULL,
+ _("--human-readable is not valid in --xml mode"));
/* If output is not incremental, output the XML header and wrap
everything in a top-level element. This makes the output in