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

invalid XML with svn log --xml

From: Bernhard Merkle <bernhard.merkle_at_googlemail.com>
Date: Tue, 29 Jul 2008 07:44:44 +0200

Hi,

I think the following is a bug or feature with SVN 1.5 svn log --xml

The problem is that svn log --xml _partly_ emits xml in case of an error.

1. checkout with SVN 1.5
2. do a svn log --xml with SVN 1.4.6.
3. I know that the WC format had changed and this is an "invalid" operation,
but look at the error msg below:
It starts with putting out _some_ XML and then the error msgs, and then the
XML is not valid </log>

IMO, there should be NO xml at all in the case of an error. Better only
issue the error msgs.
Seems that starting the output is done _before_ the actual error checking...

thanks,
Bernhard.

C:\wcWith1.5SVNformat>c:\tools\bin32\Subversion1.4.6\bin\svn log
--non-interactive --xml -v
<?xml version="1.0"?>
<log>
svn: Der Client ist zu alt, um mit der Arbeitskopie . zusammen zu
arbeiten;
bitte besorgen Sie einen neueren Subversion-Client
Received on 2008-07-29 07:45:14 CEST

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.