Saturday, April 9, 2011

What's a distributed version control system? Mercurial in Netbeans


  • When I was working on my computer graphics project I realized I needed a way to keep track of the changes I was doing to a working version of my virtual world, so if those changes I made weren't good enough, or worse  they broke something that was already working I could go back to the working version of my code.Of course you can make multiple backups of your work regularly, but is not practical.So I got to know what a version control system was.

  • This is one great tutorial (there's no use in reexplaining, we call it re-usability ! =-D)  to learn what a version control system is, and how to use one of the best available: Mercurial. http://hginit.com/top/index.html (windows oriented but all the concepts apply to linux as well). Here's the official guide too: http://mercurial.selenic.com/guide/

  • As far as I fully comprehend the above tutorial, I'll be posting more comments. In the meantime is worth nothing mentioning that I'm using the google code hosting service as my remote repository for mercurial. https://code.google.com/hosting/ , looks very nice (as almost everything else with google). I'll be posting some feedback later.


Mercurial with Netbeans.

  • First you need to install the mercurial client, in ubuntu: https://help.ubuntu.com/community/Mercurial , don't forget to modify your /etc/mercurial/hgrc file accordingly.

  • To set it up with Netbeans I'm using this tutorial: http://netbeans.org/kb/docs/ide/mercurial.html . The path you need to specify is the one to the hg binary file (for example /usr/bin/hg).

  • In the Netbeans 6.9 version you specify your repository in the Team Menu ->Mercurial->Properties (which can be a local or remote repository). In the user part, use the same user name you specified in the /etc/mercurial/hgrc file.


That's it. Let's play with it a little bit now.

 

 

No comments:

Post a Comment