At work I am using a svn repository shared among 7 people.
To avoid plaguing my mistakes with commits and breaking the builds for everyone and to avoid branching in svn, I have a created a hg repository in a part of the svn directory I am currently working on.
I perform local commits on hg as I work and since I have this all setup on a virtual machine, I am even pushing my hg repository to a private centralized location.
Recently I migrated to Mac OS X lion which broke my virtual machine, so I had to set it up again. So I checked out the project from my svn trunk and now want to get back hg change sets in the directory I was working on.
I have two options:
$ hg clone <remote repo>$ hg init && hg pull <remote repo>
Is this equivalent?
The only difference is that if you run
hg init && hg pull <remote>, then you must also:hg update defaultto checkout a working copypushandpullhg clonedoes all this in one command.