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