tags:

views:

59

answers:

2

I'm working on a project that use Mercurial as his source control manager.

The directory structure is the following:

repo/mylib1/.hg repo/mylib2/.hg ... repo/myApp/.hg

I want everything under an unique repo (ie: repo/.hg) and, ideally, I want to keep the file history of each repo.

Can I do that with Mercurial? How?

Thanks!

+2  A: 

You want to use Mercurial's relatively new support for subrepos.

avakar
+1  A: 

Yes you can combine repositories or split a repository into separate ones

Tom Willis
I finally used the technique exposed in the post you are reffering to. But instead of using "hg addremove", I use "hg mv" to keep my history.Thanks!
esavard
Cool I'm glad it worked out for you. HG is deceptively powerful for moving history around, I never cease to be amazed at what it can do.
Tom Willis