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

Re: Format of svn command output

From: Steve Greenland <steveg_at_lsli.com>
Date: 2005-03-02 23:06:54 CET

On Wed, Mar 02, 2005 at 04:30:01PM -0500, Brad O'Hearne wrote:
> Is there a way to get the output of svn commands returned as xml, or in
> some other structured format, and if so, is there some doc that defines
> the structure returned?

I think the output of all the commands is in a "structured format".
That is, some effort has gone into making the output parseable, and the
structure is not modified lightly.

IMO, this is the right thing to do. The current output is both readable
and easily handled by standard Unixy tools, like awk, grep, etc., which
XML is not. If you're going to process XML, then you're writing a real
program, and you might as well use the API rather than the command line
tools. Or, write a filter that converts the current output to XML :-)

Steve

-- 
"Outlook not so good." That magic 8-ball knows everything! I'll ask
about Exchange Server next.
                           -- (Stolen from the net)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 2 23:10:15 2005

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

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