Getting NetBeans to grok Mercurial is pretty simple when you know all the gotchas. I already got stuck on the installation twice so I decided to turn this into a blog entry, so that I know what to do when I see the problem again. :)To install Mercurial support in NetBeans, do the following:
- Get Mercurial and install it. On Mac you can install it via MacPorts
- Get NetBeans 6 and install it
- Install the Mercurial plugin via
Tools->Plugins->Available Plugins->Mercurial - Restart the IDE
- If
Versioning->Mercurialsin the menu bar is disabled, go toTools->Options->Miscelanious->Mercurial(on MacNetBeans->Preferences->Miscelanious->Mercurial) and verify thatMercurial executable pathis set up correctly - in my case, since I installed Mercurial via MacPorts, the path should be/opt/local/bin - Restart the IDE
The problem, I encountered already twice, is that if the
Mercurial executable path is not set up properly, the Versioning->Mercurials menu item is disabled and NetBeans doesn't give you any hint as to what went wrong. For some reason the path on my Mac is by default pointing to my python directory, which is not correct. Once the path is corrected and the IDE is restarted, everything works as expected.
No comments:
Post a Comment