Highlight changes in files under svn [message #532684] |
Mon, 10 May 2010 16:17  |
Eclipse User |
|
|
|
I'm using Netbeans as primary IDE. But it has some issues and I try to change my IDE. I look up for eclipse. It's a good system.
It has all I need to code.
But there is one thing that prevents me to change IDE finally.
Netbeans can highlight the changes in code that is under svn.
I mean that if I edit file and add code that code will be highlighted with green color, if I delete a part of code line with changes will be highlighted with red color.
It is very usefull to prevent commiting debug changes.
I want to ask, can eclipse do something like this?
Regards,
Igor.
|
|
|
Re: Highlight changes in files under svn [message #532698 is a reply to message #532684] |
Mon, 10 May 2010 17:16   |
Eclipse User |
|
|
|
On 5/10/2010 2:17 PM, Igor Krasilich wrote:
> I'm using Netbeans as primary IDE. But it has some issues and I try to
> change my IDE. I look up for eclipse. It's a good system.
> It has all I need to code.
> But there is one thing that prevents me to change IDE finally.
>
> Netbeans can highlight the changes in code that is under svn. I mean
> that if I edit file and add code that code will be highlighted with
> green color, if I delete a part of code line with changes will be
> highlighted with red color.
>
> It is very usefull to prevent commiting debug changes.
>
> I want to ask, can eclipse do something like this?
>
> Regards,
> Igor.
You must install subclipse or the other Subversion plug in and create
your projects from subdirectories under Subversion control. This is long
and involved, so I won't explain it here.
Comparing two versions of a file is done by right-clicking the file,
choosing Compare With and then one of Base Revision, Latest from
Repository, Revision..., Branch/Tag..., etc.
What you'll get isn't identical to the view you're used to getting from,
say, TortoiseSVN, but it's almost as useful.
Russ Bateman
|
|
|
|
|
|
|
|
|
|
Re: Highlight changes in files under svn [message #533226 is a reply to message #532684] |
Wed, 12 May 2010 11:45  |
Eclipse User |
|
|
|
In at least the Subversive plugin (it might be in Subclipse also), the "Team" menu has a "Show Annotation..." menu item. This will put colored bars in the line number column. Each separated bar represents a different block of changes. If you hover on each of the bars, it will show a tooltip showing the details of the SVN checkin (comment, author, date, etc.). If you then make changes to the file, the colored bars shift. If you hover on the now white areas (where you've changed lines, it shows a tooltip with the diff output comparing the current to the base revision.
|
|
|
Powered by
FUDForum. Page generated in 0.08611 seconds