Page 1 of 1

[SOLVED] HG Clone 2.0

Posted: Wed Mar 26, 2014 5:55 pm
by iblues1976
To clone the ogre 2.0 do I have to specify the version? or just
hg clone https://bitbucket.org/sinbad/ogre

?

Re: HG Clone 2.0

Posted: Wed Mar 26, 2014 6:09 pm
by scrawl
A clone is basically a complete local copy of the whole repository. It contains all branches (and all history for those branches, too).

So what you can do is either

Code: Select all

hg clone https://bitbucket.org/sinbad/ogre
hg checkout v2-0
to clone the whole repository and then update the working directory to the 2.0 branch, or you can ask clone to only download the one branch you want.

hg help clone:
-b --branch BRANCH [+] clone only the specified branch

Code: Select all

hg clone https://bitbucket.org/sinbad/ogre -b v2-0

Re: HG Clone 2.0

Posted: Wed Mar 26, 2014 7:34 pm
by iblues1976
This is what I wanted : hg clone https://bitbucket.org/sinbad/ogre -b v2-0


Thank you!