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

Re: show diffs in a gui client, how to get a list of changed files?

From: SteveKing <stefan.kueng_at_wagner-group.ch>
Date: 2005-05-26 12:46:35 CEST

Martin Hauner wrote:

> I would like to handle diffs on urls/paths (tags/branches) in subcommander
> by presenting a list of the files with differences and by showing the diff
> when you select a file from the list.
> For example if i want to see the difference between the trunk and a tag and
> the file subcommander.cpp was changed i would like to get the following info
> trunk/subcommander/subcommander.cpp, r800
> tags/0.9.0/subcommander/subcommander.cpp, r750

What's also needed here is information about the kind (folder/file), and
if it's a property change or a content change.

> subcommander.cpp will be presented in the gui in a list view. I can then
> select it to see the differences in detail by running the diff:
> svn_client_diff( "trunk/subcommander/subcommander.cpp", 800,
> "tags/0.9.0/subcommander/subcommander.cpp", 705, ... );

Or even better: an svn_client_cat() on both files, then start a visual
diff tool.

> What i would like to get from the svn api is a list of the files with
> differences and the info i need to run the diff on those files to show their
> difference.
> I looked into the code but there is lot of stuff happening inside
> svn_client_diff..
> Where do i start to get this info from the subversion api?

I also want to ask for this feature to use in TSVN. Currently, I'm doing
an svn_client_diff() on both URL's, then parse the returned unified diff
for the file list. But that is *awfully* slow if there are a lot of
changes between those two branches - I once did a test and cancelled it
after 5 minutes because it still wasn't finished with svn_client_diff()!

As Martin already said: this feature would be used to show the list of
changed files so the user can then start a diff tool on that file.

And as far as I can remember, there have already been some requests
about this kind of feature for people who want to use this list for
their scripts.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 26 12:49:29 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.