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

Re: WG: svn diff --xml

From: Ian Anderson <i.subversion_at_operation-sensory-overload.com>
Date: 2005-06-24 21:21:13 CEST

Stefan Huth wrote:
> I thought about something like the svn log --xml command, where I become
> the result as a xml-file.
>
> Maybe something like that:
>
> <index name="d:/programming/java/HelloWorld/src/HelloWorld.java">
> <url1 revision=1500>./branches/v1.0/src/HelloWorld.java</url1>
> <url2 revision=1500>./branches/v1.1/src/HelloWorld.java </url2>
> <string><!--string replaced-->
> <url1 linenumber=10>System.out.println();</old>
> <url2 linenumber=10>System.out.println("Hello");</new>
> </string>

I can't comment on the suitability of the format but this XML isn't
quite XML. All attributes need to be quoted (e.g. revision="1500" or
revision='1500' instead of revision=1500). Also, the closing tag must
match the opening tag, so instead of:
<url1 linenumber=10>System.out.println();</old>

you'd have to write something like:
<old url="url1" linenumber="10">System.out.println();</old>

Ian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 24 21:23:27 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.