[SOLVED] HG Clone 2.0

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


iblues1976
Gnome
Posts: 379
Joined: Fri Sep 16, 2011 4:54 pm
x 10

[SOLVED] HG Clone 2.0

Post by iblues1976 »

To clone the ogre 2.0 do I have to specify the version? or just
hg clone https://bitbucket.org/sinbad/ogre

?
Last edited by iblues1976 on Wed Mar 26, 2014 7:34 pm, edited 1 time in total.
scrawl
OGRE Expert User
OGRE Expert User
Posts: 1119
Joined: Sat Jan 01, 2011 7:57 pm
x 217

Re: HG Clone 2.0

Post 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
iblues1976
Gnome
Posts: 379
Joined: Fri Sep 16, 2011 4:54 pm
x 10

Re: HG Clone 2.0

Post by iblues1976 »

This is what I wanted : hg clone https://bitbucket.org/sinbad/ogre -b v2-0


Thank you!