[SOLVED] HG Clone 2.0

Discussion area about developing with Ogre2 branches (2.1, 2.2 and beyond)
Post Reply
iblues1976
Gnome
Posts: 379
Joined: Fri Sep 16, 2011 4:54 pm

[SOLVED] HG Clone 2.0

Post by iblues1976 » Wed Mar 26, 2014 5:55 pm

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.
0 x

scrawl
OGRE Expert User
OGRE Expert User
Posts: 1119
Joined: Sat Jan 01, 2011 7:57 pm
x 2

Re: HG Clone 2.0

Post by scrawl » Wed Mar 26, 2014 6:09 pm

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
0 x

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

Re: HG Clone 2.0

Post by iblues1976 » Wed Mar 26, 2014 7:34 pm

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


Thank you!
0 x

Post Reply