Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Subversive » Display indicator in code editor when source has changed?
Display indicator in code editor when source has changed? [message #556488] Wed, 01 September 2010 14:45 Go to next message
johnrl is currently offline johnrl
Messages: 1
Registered: September 2010
Junior Member
Hi all.
Is it possible to configure Subversive to display an indicator in the code editor when you have made a change compared to the last (base/local) svn revision of the file?`

Intellij does this elegantly by putting a small icon in the right or left bare in the code editor. This makes it very easy to see what changes you are committing (instead of using the "compare to" feature every time..).
Re: Display indicator in code editor when source has changed? [message #556523 is a reply to message #556488] Wed, 01 September 2010 16:08 Go to previous messageGo to next message
Jörg Thönnes is currently offline Jörg Thönnes
Messages: 229
Registered: July 2009
Senior Member
On 09/01/2010 04:45 PM, johnrlaugh@gmail.com wrote:
> Hi all.
> Is it possible to configure Subversive to display an indicator in the
> code editor when you have made a change compared to the last
> (base/local) svn revision of the file?`
>
> Intellij does this elegantly by putting a small icon in the right or
> left bare in the code editor. This makes it very easy to see what
> changes you are committing (instead of using the "compare to" feature
> every time..).

You could use Team -> Show annotations as a workaround. Of course, this will display a lot of other
changes. But you could manually set the revision to start from.

New lines are marked as having no revision.

Possibly, this could be a base for an implementation in Subversive.
Please file a feature request.

Cheers, Jörg
Re: Display indicator in code editor when source has changed? [message #556633 is a reply to message #556488] Thu, 02 September 2010 07:39 Go to previous messageGo to next message
Alexander Gurov is currently offline Alexander Gurov
Messages: 87
Registered: July 2009
Member
Hi!

It seems the "Quick Diff" option is just what you need. In order to enable it please follow those steps:
1) right click on the left field of the source editor
2) choose "Show Quick Diff" menu item
Re: Display indicator in code editor when source has changed? [message #556649 is a reply to message #556633] Thu, 02 September 2010 08:30 Go to previous messageGo to next message
Jörg Thönnes is currently offline Jörg Thönnes
Messages: 229
Registered: July 2009
Senior Member
On 09/02/2010 09:39 AM, Alexander Gurov wrote:
> It seems the "Quick Diff" option is just what you need. In order to
> enable it please follow those steps:
> 1) right click on the left field of the source editor
> 2) choose "Show Quick Diff" menu item

Ah, thanks Alexander. I know "Quick Diff" because this also displays annotations, but was not aware
of this.

The colours are quite light and not easily visible. Maybe they should be configured.

In addition, I found the "Preferences" entry for "Quick Diff" (which can easily accessed using the
same right-click and selecting "Preferences..." below):

General->Editors->Text Editors->Quick Diff

Here John can configure all its needs:

[x] Show in overview ruler (i.e scroll bar on the right side)

colors for add, delete, change (could be more intensive for me)

And most notably: Reference source:

Default is "Version on Disk", but Johns wants "SVN Working Copy Base".

For "Version on Disk" every Save clears the indicators, while "SVN Working Copy Base" gets cleared
only on commit/revert.

Anyway, thanks for your hint, which let me learn something new :-)

Cheers, Jörg
Re: Display indicator in code editor when source has changed? [message #556650 is a reply to message #556649] Thu, 02 September 2010 08:40 Go to previous message
Alexander Gurov is currently offline Alexander Gurov
Messages: 87
Registered: July 2009
Member
Subversive provides support for the "Quick Diff" which means that the "SVN Working Copy Base" version should be used instead of the "Version on Disk" one.
Previous Topic:Overwrite and update doesn't replace local copy with repository copy
Next Topic:problem with SVNKit 1.3.2?
Goto Forum:
  


Current Time: Wed Sep 17 05:45:31 GMT 2014

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

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