Skip to main content



      Home
Home » Newcomers » Newcomers » Highlight changes in files under svn
Highlight changes in files under svn [message #532684] Mon, 10 May 2010 16:17 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #532772 is a reply to message #532698] Tue, 11 May 2010 04:15 Go to previous messageGo to next message
Eclipse UserFriend
Russ, I know about Subclipse and how it works.
I know about file diff.

But my questions isn't about how svn works.

Can eclipse diff file from repository and local file when I'm editing local file, without any additional actions from me?
Re: Highlight changes in files under svn [message #532796 is a reply to message #532772] Tue, 11 May 2010 05:13 Go to previous messageGo to next message
Eclipse UserFriend
> Can eclipse diff file from repository and local file when I'm editing
> local file, without any additional actions from me?

Looks to me like your are asking this:

"Is there an Eclipse editor/extension/plug-in
for highlighting differences ('diffs')
while editing a source file,
additional to the "normal" syntax highlighting?"

Correct?


=> Anyone knows if this is possible? Sounds like a good feature.
Re: Highlight changes in files under svn [message #532821 is a reply to message #532796] Tue, 11 May 2010 06:10 Go to previous messageGo to next message
Eclipse UserFriend
Here is screenshot from Netbeans.
Look up to comments.
Thats I need from eclipse, highlight the code in files and filenames with changes.
http://krasilich.com/netbeans.jpg

[Updated on: Tue, 11 May 2010 06:12] by Moderator

Re: Highlight changes in files under svn [message #532938 is a reply to message #532684] Tue, 11 May 2010 11:25 Go to previous messageGo to next message
Eclipse UserFriend
On 5/10/10 4: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?

Yes, it can; the feature is called Quick Diff. In the Preferences,
navigate to General > Editors > Text Editors > Quick Diff. Enable it and
then select SVN as the "reference source" option.

Hope this helps,
Eric
Re: Highlight changes in files under svn [message #532949 is a reply to message #532938] Tue, 11 May 2010 11:54 Go to previous messageGo to next message
Eclipse UserFriend
Eric, thanks a lot.

This is it.

And is there way to mark files with changes? It'll be greatfull to see in what file you make changes without process svn commit.
Re: Highlight changes in files under svn [message #533211 is a reply to message #532949] Wed, 12 May 2010 10:47 Go to previous messageGo to next message
Eclipse UserFriend
On 5/11/10 11:54 AM, Igor Krasilich wrote:
> Eric, thanks a lot.
>
> This is it.
>
> And is there way to mark files with changes? It'll be greatfull to see
> in what file you make changes without process svn commit.

Again in the Preferences, go to Team > SVN > Label Decorations.
You should also read the Help about Synchronize View (or just select
Team > Synchronize from the right-click menu on a project); Synchronize
provides a preview of incoming and outgoing changes.

Hope this helps,
Eric
Re: Highlight changes in files under svn [message #533218 is a reply to message #533211] Wed, 12 May 2010 11:08 Go to previous messageGo to next message
Eclipse UserFriend
[Eclipse supports highlighting source changes from an SVN version]

This was new for me, too. Many thanks, Eric!
Re: Highlight changes in files under svn [message #533226 is a reply to message #532684] Wed, 12 May 2010 11:45 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Howto upgrade a Galileo all-in-one install to Helios?
Next Topic:custom build steps / script
Goto Forum:
  


Current Time: Fri Sep 19 10:55:32 EDT 2025

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

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

Back to the top