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

RE: Question about svn diff --xml

From: Gonzalez Diaz, Xoan <G2485_at_caixagalicia.es>
Date: Wed, 9 Jul 2008 09:31:31 +0200

What we are trying to do is to show, in a web application, differences
from revisions of a file and some statistical information like number of
modified lines in a the file.
So, it could help an xml output of diff, that we could transform with
the appropriate xslt.

The files are not XML itself, but java or c# source code.

I don't know how the xml output would look like.
In this concrete momment my simple needs are:
 - To show side by side (something similar to visual merge tools), for
example in a html table, the modified lines in different revisions of
the file
- To show the number of modified lines (I guess this could be achieved
by other ways different from xml output of diff)

Xoan

> -----Mensaje original-----
> De: John Peacock [mailto:john.peacock_at_havurah-software.org]
> Enviado el: martes, 08 de julio de 2008 17:08
> Para: Gonzalez Diaz, Xoan
> CC: users_at_subversion.tigris.org
> Asunto: Re: Question about svn diff --xml
>
> Gonzalez Diaz, Xoan wrote:
> > Is there any way to obtain xml output for svn diff?
>
> What would you expect XML output for diff to look like? I'm having a
> really hard time trying to visualize how involving XML would be
anything
> but a distraction. The diff format is designed specifically to
produce
> the minimal text required to feed to the patch program. If you are
just
> trying to find a more human readable way to visualize diff's, you may
> want to investigate one of the many visual merge tools (kdiff3 or meld
> for example under Linux).
>
> Or, are you trying to produce a diff between two XML files by any
chance
> (that respects the sometimes unordered aspect of XML files)? That is
a
> completely different situation; there has been some talk about how
best
> to provide filetype-specific support for diff/merge.
>
> John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-09 09:31:24 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.