Mercurial is one of the new breed of version control systems called DVCS (Distributed Version Control Systems) that use distributed repositories residing in every developers machine, instead of centralized ones as is the case with Subversion.
Let's take a look at how to integrate Mercurial and NetBeans.
In this recipe we will assume that no Mercurial repository is available on the local machine.
We first need to create an account in a Mercurial repository provider.
So for this recipe to work we will need to visit and create an account in http://sourceforge.net.
Under Sourceforge we will host our free Mercurial repositories, which will be enough for our needs.
Keep in mind that, while using Sourceforge to test this recipe, it is necessary to enable Mercurial since it is not enabled by default.
Visit the link below for more information:
https://sourceforge.net/apps/trac/sourceforge/wiki/Mercurial#Management
Once the account and a new project have been created in Sourceforge, we need to configure NetBeans to use Mercurial.
We will now have to configure the Mercurial repository in NetBeans.
On the toolbar click on Team, then Mercurial and Properties.
Enter the Mercurial default-pull, default-push, and username to the dialog box and click on OK.
Carry out the following steps in order to create a project:
Now to initialize our project:
Once the repository has been configured NetBeans will perform a check against the Mercurial server. When this is finished, the project in NetBeans will look slightly different.
The file highlighted in green denotes that it is a new file that has not yet been committed to the server.
The little blue icon looking like a small glass means that changes (creation, modification, and deletion) have occurred to the indicated package.
Let's check the server for modifications.
3.133.151.144