[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Parseable output: --xml option for more commands

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2005-01-14 18:13:59 CET

Sub-topic: XML output to be modified by --verbose?

kfogel@collab.net wrote:
> Julian Foad <julianfoad@btopenworld.com> writes:
>>(Without "-v", the "date" elements are omitted, just like in the
>>non-XML case.)

> I wonder, is there any need to behave differently with '-v' in the XML
> case?
>
> Hmm, apparently '-v' does cause 'svn log --xml' to behave differently:
> it includes path change information with '-v'. So there's precendent.
> But I really wonder if that's a precendent worth following. The whole
> point of XML output is that the parser takes what it needs and ignores
> the rest.

"svn log --xml" is modified by both "-v" and "-q". I wondered whether it is
appropriate to do so, and decided that there was no harm in "svn ... -xml"
having such variants that match the non-XML mode; it is no problem for a script
to provide the options to give the data that it wants.

On the other hand, in "svn log", both "-v" and "-q" control the addition of
potentially quite large amounts of data, and this could be considered a valid
reason for the options. This is not the case with "svn blame -v" or "svn info
-v", and so I tend to agree that it is more appropriate to just output all the
fields anyway. Anyone else?

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 14 18:37:21 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.