Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Is it possible to create Patch file with Eclipse Team API?
Is it possible to create Patch file with Eclipse Team API? [message #510224] Tue, 26 January 2010 13:54 Go to next message
Eclipse User
Originally posted by: fxulusoy.yahoo.com

Hi,

I would like to create patch files based on diff. We need functionality
like that of the "create patch" menu entry of the SVN/CVS plugins
without installing them. Is it possible to do that with Eclipe Team API
or compare API? Is there any other better way to do that?

Thanks.
Re: Is it possible to create Patch file with Eclipse Team API? [message #510704 is a reply to message #510224] Thu, 28 January 2010 11:31 Go to previous messageGo to next message
Tomasz Zarna is currently offline Tomasz Zarna
Messages: 165
Registered: July 2009
Senior Member
I'm afraid the answer is "no". Creating a patch takes place in CVS internals. You can check what's happening there by looking at GenerateDiffFileAction.java. But as I said it's an internal class, there is no API to create a patch. An effort had been made to address this issue, but unfortunately we had to abort it. The compare API can only be used to apply a patch.
Re: Is it possible to create Patch file with Eclipse Team API? [message #510842 is a reply to message #510704] Thu, 28 January 2010 19:07 Go to previous message
Eclipse User
Originally posted by: fxulusoy.yahoo.com

Hi Tomasz,

Then, we will do it via CVS/SVN.
Thanks for your reply.

Best Regards

Tomasz Zarna wrote:
> I'm afraid the answer is "no". Creating a patch takes place in CVS
> internals. You can check what's happening there by looking at
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.team.cv s.ui/src/org/eclipse/team/internal/ccvs/ui/actions/GenerateD iffFileAction.java?revision=1.27&view=markup
> But as I said it's an internal class, there is no API to create a patch.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=71374 had been made to
> address this issue, but unfortunately we had to abort it. The compare
> API can only be used to apply a patch.
Previous Topic:How to programmatically create ParameterizedCommand
Next Topic:API for eclipse.ini
Goto Forum:
  


Current Time: Thu Oct 30 16:43:14 GMT 2014

Powered by FUDForum. Page generated in 0.16467 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software