As part of getting used to Mercurial, I have been experimenting with the support different Java IDEs offer for Mercurial Version Control. Recently I have been trying NetBeans and I thought it would make the basis of a good article. You can read all the other mercurial articles here.
NetBeans comes with Mercurial support built-in, which is a good thing. You can checkout a project and then there is a Mercurial menu option with all the settings.
It seems to be faster than Eclipse which is good. I think the difference between Fetch and Pull from Default options is that Fetch combines a Pull, Merge and Commit. Status, Diff and Commit allow you you add your changes to your local repository which you can then Push. When a Pull results in a merge, NetBeans automatically asks if you would like to merge the two which is useful.
One feature I would like to see in NetBeans is that Eclipse lets me see changes before I pull them which I have not been able to replicate in NetBeans.
So NetBeans offers a pretty good Mercurial experience but it would be nice to see changes before pulling them. If you have tried Mercurial on NetBeans, what did you think of it?
NetBeans also have a nice spin on ignoring files. Mercurial has a file called .hgignore. NetBeans did not like my existing copy of .hgignore so you might want to delete and start from scratch. NetBeans lets you toggle whether you want to ignore a file or not. Other tools only let you add the file to the ignored list and you then have to edit it by hand if you make a mistake or need to change.
So NetBeans offers pretty good support for Mercurial although there is still scope for some enhancements like being able to see remote changes before you pull. If you have used Mercurial on NetBeans, what was your experience?
This post is part of our “NetBeans article Index” series. In these articles, we aim to explore NetBeans in different ways, from useful hint and tips, to our how-to’s, experiences and usage of the NetBeans IDE.
Do you need to write or read JPEG in Java?
We have an easy guide on how to write JPEG in Java using ImageIO and JDeli.
You can learn how to read/write most of the image files in ImageIO. However, it gives little control over the process.
JDeli is easy to use and offers complete support, so why not give JDeli a try?