Any Eclipse plugin to show Mercurial diff of file in editor? - eclipse

Plugins like vim-signify for Vim show the diff status of the file being edited, if the file belongs to a Mercurial or Git repository. It displays this information by showing indicators for the lines which have changed since last commit, along the left gutter of the editor window.
Is there any similar plugin for Eclipse which works with Mercurial? That is, while editing a file which belongs to a Mercurial repository, the lines which have changed are highlighted or indicated by some means.

The one and only one worth it :) : https://bitbucket.org/mercurialeclipse/main/wiki/Home

Related

IntelliJ IDEA's counterpart to Eclipse's Quick Diff

I just moved to IntelliJ IDEA after spending years working in Eclipse. Eclipse has "Quick Diff" option that allows me to choose color for each type of modification (new line added, line deleted and line modified). It compares my local changes and Git / SVN / CVS code, depending on what you choose. Does IntelliJ has this option or some plugin that does the same thing?
I'm sorry if this question has already been asked before. I tried to find it on IntelliJ's page, on Google and Stack-overflow.
IntelliJ will by default diff with the VCS that's set up for the project/module, but you can also diff two files by right-clicking on one of them and selecting Compare With....
To change the colors go to Settings > Editor > Color Scheme > Diff & Merge. The important color is the highlighting of the line in the diff view, the Error stripe mark color is the color shown in the gutter.

Eclipse EGit Not Opening File Comparison

I am using Eclipse (Photon 4.8.0) for a Git project. Before committing, I have been double clicking the files which appear in the unstaged changes section of the Git Staging View to remind myself of what I have changed before writing the commit message (I'm still new to Git so occasionally I will do several things before remembering that I have to commit my changes). However, double clicking on the file today merely opens the file, rather than opening the comparison view. I can still open the comparison view by right clicking the file and selecting Compare with Index but this takes more time and is frustrating.
As far as I know, I haven't changed any settings (not intentionally anyway). Can someone explain to me how to get back the behaviour I was seeing before please?
Make sure, in the Git Staging view toolbar the Compare Mode button is pressed.
See also EGit User Guide of the History view with the same icon.

SourceTree Won't Show All My Changes

I want to commit my works. But when I want to see what I changed and wrote them into commit message, I saw some of my changes won't show.
What is the problem?
Change The Maximum Lines And Size In Options
Tools > Options > Diff
Change Max Diff Line Count
And
Change Size Limit (Text)
I'm adding this answer as another possible cause of SourceTree "only showing the change history for a single file". This was annoying me for quite a while. No settings changes would display more than one file. THEN, I realised that the commit summary is actually a panel which slides up over the file list. ZOMG.
Make sure your filter is setup correctly:
For me the filter bugged out and while the main text said "Pending files", the dropdown had nothing selected.
Size Update For the latest ScourceTree
ScourceTree -> Preferences -> Diff -> Size limit(text)
Make sure that you copy the last version of your project, the one that you want to commit, to the directory of your repositories that you set for SourceTree. Replace the old project with the new one then open SourceTree
Open SourceTree, click commit, select all the files that you want to commit, which will probably be all the files you see (becuase SourceTree shows the changed files after you click commit).
On the Puush button on the top you'll se a red notification icon which means that you didn't push the last commit. Once you do that, your changes must be visible on BitBucket and SourceTree
Another possible reason:
Make sure Ignore whitespace in the diff view is not enabled.
If it is not a Pending issue or an options issue mentioned above, make sure Mercurial wasn't inadvertently checked if you're using it with Git. It will manifest in a similar way. If so, you're going to need to deinstall & re-install.

Eclipse code line change

I often switch from Eclipse to Netbeans and back. There is a feature in Netbeans that allows you to see changed lines in code due to repository.
Example:
Is there something similar in Eclipse?
Yes, right click the file Team -> Show Annotation... When you hover over the colored line numbers you see the committing user and the commit message. If it is a local change it is just white.

Eclipse with Subversive - regular svn diff view

Previously I've used command line SVN without any wrappers.
Few days ago I switched to Eclipse with Subversive and have problems with diffs.
Team Sync perspective with Compare view is OK, but it displays whole file, not just changes.
Where I can find something similar to "svn diff" output? I need only changes.
Eclipse Compare views show the entire file which makes sense, as its a GUI. In the Compare view, there are buttons in the top right that enable you to skip from diff to diff (down and up), and the right-hand margin shows locations. So, while its not exactly the same as the command-line, its just as functional. Also, it gives you context for the changes, not just the changed line.
If you need to output a report, that's a little different. You might be able to just click int the top pane, type Ctl-A to select all, Ctl-C to copy, and then paste into a text editor. That might give you just the changes.