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

Re: [Subclipse-users] Feature inquiry: Create diff from changeset

From: Mark Phippard <markphip_at_gmail.com>
Date: 2007-07-26 22:08:56 CEST

On 7/26/07, Zach Bailey <zach.bailey@hannonhill.com> wrote:
> Hola,
>
> I often find myself using change sets in the synchronize view and I was
> wondering if I was somehow glancing over the ability to generate a
> patch/diff from the files in any given change set. Is this possible, and
> if not, I will go ahead and enter a feature request into the bug
> tracker.

There is already an issue out there.

http://subclipse.tigris.org/issues/show_bug.cgi?id=503

> I see this as a pretty low-impact, easy feature to accommodate.
>
> Mark, what do you think? I know Subclipse relies on Eclipse unified diff
> and then svn diff for generating these files, I was suspecting you just
> run a diff on each file individually so it is just a matter of which
> file handles to supply to the diff engine, correct?

It sounds like you are going to work on a patch? That'd be cool. One
reason the feature does not exist is that Subversion does not expose
an API to us to generate a diff for a named set of files. We have an
open issue filed and are hoping it will make it in to 1.5. You are
correct that an alternative is that we run each diff individually and
then combine the results in a single file. You are more than welcome
to write that if you want. I would suggest doing it in
svnClientAdapter so that it looks like there is an API to Subclipse.
Then if Subversion does add the feature, the svnClientAdapter
implementation can just be simplified by letting JavaHL do more of the
work.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Thu Jul 26 22:07:39 2007

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

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