On Jun 1, 7:55 pm, Bruno Postle <[email protected]> wrote:
> On Tue 01-Jun-2010 at 16:14 -0700, Terry Duell wrote:
>
> >The way the Mercurial repository works has me a bit baffled.
> >To clone the hugin trunk I used...
>
> > hg clone http://hugin.hg.sourceforge.net:8000/hgroot/hugin/hugin mytrunk
> >and that worked OK, putting the clone into local dir "mytrunk".
> >Yesterday I wanted to get the branch (if that is what it is) with the
> >gsoc2010_patent_free_cpm and test that
>
> The hg clone command fetches the entire repository including all
> history and branches, but by default it gives you the sourcecode for
> the 'default' branch (i.e. the trunk).
>
> You can get a list of branches with 'heads':
>
>    hg heads
>
> Switch to one of these branches with 'update':
>
>    hg update gsoc2010_patent_free_cpm
>
> Switch back to the trunk like so:
>
>    hg update default

There must be a way to avoid the switching forth and back.  The
following may work (I have not tested in depth, so far it seems to be
ok):

mkdir -p ~/src/hugin
cd ~/src/hugin
hg clone http://hugin.hg.sourceforge.net:8000/hgroot/hugin/hugin trunk
cd trunk
hg update
cd ..
mkdir cpm
cd cpm
ln -s ../trunk/.hg
hg update -C gsoc2010_patent_free_cpm

now you should have two folders with two branches: trunk and cpm.
the .hg folder in the clone is the full repository with all branches

I have not tried how this reacts to commits / pulls / updates. it may
work. there may be a need for more tweaking in how the .hg folder is
linked.

Yuv

-- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to