>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
(mercurial will stop you if there are any uncommitted changes,
discard them with `hg revert`)
Don't forget to fetch the latest changes for all 'branches'
occasionally with `hg pull`, then update the visible branch with `hg
update`.
--
Bruno
don't do the following:
> ln -s ../trunk/.hg
> hg update -C gsoc2010_patent_free_cpm
Instead:
hg clone ../trunk
hg update -C gsoc2010_patent_free_cpm
It will use hard links (so no abuse of disk space), and it is guaranteed to
work (while symbolic linking of .hg is guaranteed to fail, after all the name
of the current branch is stored inside .hg). But to move patches between
checkouts you will have to do push/pull.
--
Cyrille Berger