Creating a Remote Mercurial Repository
I wanted to play with the metaprogramming abilities of Groovy. So I started a new project in NetBeans and created a Mercurial repository to version it. I had a few files committed eventually.
I am really nervous about keeping code in a single location. This is why I do Time Machine backups on my mac. This is also why I keep a clone of Mercurial repositories on my workstation at work. Well, except for my personal projects. I keep a clone on the same server that is hosting this blog. I decided that this new project was worth cloning remotely.
It turns out that you can clone a repository to a remote system just as easily that you can clone a repository from a remote system. The syntax is simply:
hg clone [local-repo] [remote-repo]
This even works over ssh. It also leads to a little more peace of mind on my part.