Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to Create Patch in Eclipse from changes that have already been committed?

I've used the Create Patch facility in Eclipse to create patches for uncommitted changes. I'm looking for a way to create patches in Eclipse for changes that have already been committed to the VCS.

Unless I've missed something I don't think this is possible, but is there a plugin that adds this capability? e.g. enabling you to select two versions in the History view and create a patch between them or comparing two branches and being able to create a patch from the results in the Synchronize view?

I'm happy creating such patches from the command line but am looking for a way to streamline/integrate the process if possible.

Thanks for any help.

Update: if any suggestions are specific to a particular source control system I'm particularly interested in CVS, SVN and Mercurial. Thanks again.

like image 875
mikej Avatar asked Nov 17 '09 14:11

mikej


2 Answers

With subclipse you can select two revisions of a directory in the history view, compare them and save the patch as a unified diff.

like image 57
Thomas Jung Avatar answered Sep 18 '22 13:09

Thomas Jung


I just made a patch SVN after a commit! :)

  • Enter in "SVN Repository"
  • Go to the root of the project.
  • Click on "Compare"
  • Select "Unified diff to output file"
  • Click on "Select" and choose the name and location of the file
  • Click "Ok"
like image 20
Marcio Romualdo Avatar answered Sep 21 '22 13:09

Marcio Romualdo