10
2009
Netbeans {hearts} Mercurial — With Screenshots
I’ve been learning Mercurial over the past two weeks and I’m really loving it. I’ve used git before, and had a bunch of issues with merges (my fault, not git’s – but troublesome none the less). I thought I’d have a good look at Mercurial to see what it offered.
I’ve got to say the learning curve with Mercurial has been awesome. I bought a copy of the book, which has helped with the headshift of working with distributed revision control. A side benefit is that I now understand git better as well
.
One of my real interests in exploring Mercurial is the standard of tooling. I’ve been happy with TortoiseHg on Windows, and am comfortable with the commandline on OSX, but I was keen to see how the IDEs fare. These days I’m using Netbeans for Grails development, and the Mercurial support is just fantastic (and built in the basic install!).
First up, let’s have a look at the basic editor window.
Just like the normal Netbeans subversion support, the project explorer on the left marks modified files in blue, and new files in green. Any folder paths containing new/modified files have a small cylinder to let you know. All good visual cues. You can also see the Versions window active in the bottom right. This gives you a full list of your new/modified files for this project. You can right click to find out the deets.
The editor window itself contains markers for lines you’ve modified, which avoids a lot of the need to fire up a diff. When you’re ready to commit, you get a standard dialog:
With our commits all in place, all the colour scheme on our files revert to default black. But what if you need to do a more serious look at a file’s history? No problem, just the normal right click, / Mercurial / Show History, and you’ll have all the info you need. This dialog gives you the local repo revision number against each change, so it’s easy to get back to where you were later:
So what’s missing in the Netbeans Hg support? There’s a few things I haven’t found yet. There doesn’t seem to be any visual history for the project, (as per “hg glog” or “hg serve”) – and there doesn’t even seem to be any support for branching and cloning. But for day-to-day stuff, I’m happy to revert to the commandline for those for now.
So overall I’ve been super happy with Mercurial so far. I just yesterday saw Ted Nalied‘s great presentation on Mercurial – which is also a good resource for seeing what Hg has to offer.
Also look forward to checking out Mercurial Eclipse once I finally get Eclipse Spring/STS installed.
If people are interested, I’ll put together a basic Mercurial/Grails screencast to get you started (ala Jeff Brown’s awesome Grails/Git one).
6 Comments + Add Comment
Leave a comment
Glen Smith
Archives
- January 2012
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- April 2011
- March 2011
- January 2011
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- March 2004
- February 2004
- January 2004
- December 2003
- November 2003
- October 2003
- September 2003

An article by Glen





I actually looked at Mecurial before Git because of the tool support in NetBeans. I am curious to hear how the Project Kenai integration works, have you given it a try? I was hesitant to start something at Kenai that wasn’t a real project but I recently read they now have the feature to delete a project so it might not be as intimidating as before. I would be interested in the screencast you mention.
I’m glad you liked the presentation Glen, thanks!
Nice review of the NetBeans mercurial integration. I tend to be a command-line guy, but I’ve also used Murky on OSX as a stand-alone IDE. Some of my co-workers that use Windows really like TortiseHg (similar to TortiseSVN).
It’s good to see some others in the grails community getting into Mercurial. I’ve been using it for a couple of years now and find it much easier to use than git. The features of git and mercurial have converged, so that it’s now more of a culture and usability difference rather than abilities of one system over another.
For people looking for mercurial hosts, I can recommend bitbucket. I use it for personal accounts (including my grails plugins), and we also have private repos hosted with them at my workplace.
Nice post Glen.
Mercurial in NetBeans is better integrated than MercurialEclipse and Eclipse.
I’ve been using ME more lately since the support of grails and groovy in Eclipse has leaped well ahead of Netbeans(IMO).
i have problems to pull/push mercurial things on netbeans. those menu options don’t appear to me.
any idea why?
i’m using 6.8 Beta
Ed: It’s definitely worth giving Kenai a try!
Please share your thoughts/observations afterward!
@sombriks – I was using Netbeans 6.7.1. Worked fine out of the box. Maybe try the latest RC?