Merge only a one remote branch into a local branch with Mercurial

Posted by Pepijn on Super User See other posts from Super User or by Pepijn
Published on 2010-03-24T20:13:24Z Indexed on 2010/03/24 20:23 UTC
Read the original article Hit count: 433

Filed under:
|

I wan to manage some profiles as XML files in Mercurial repos.

The setup I'm thinking of: Each user has a repo with a branch where he manages his own profile, and a number of branches where he can pull and merge other profiles from that branch of another user.

So for example I have my own profile branch and a branch labeled friends, in which I want to pull the profile branches of a few remote repos, to collect like a collection of profiles.

I figured out that since the repos are unrelated I need to use -f, but I can't figure out how to pull and merge only a single branch into another.

So I want like

me           friend       someone

profile ---> friends <--- profile
         \-> family

friends <--- profile

Is this even possible? Should I use separate repos instead? Is there a better solution?

© Super User or respective owner

Related posts about mercurial

Related posts about merge