Lasse Vågsæther Karlsen
lasse at vkarlsen.no
Thu Jan 20 06:05:12 CST 2011
You should look into subrepos:
http://mercurial.selenic.com/wiki/Subrepository
It will allow you to keep your common files in one repository, and link to
those from multiple other projects.
--
Lasse Vågsæther Karlsen
On Wed, Jan 19, 2011 at 20:37, andrew.cunningham <
andrew.cunningham at dai.co.uk> wrote:
> Hello!
>
> It is possible to use multiple mercurial repositories from one directory?
> Or alternatively, is it possible to tag a certain set of files in a
> repository, such that it is possible to work with commits etc on that set of
> files only?
>
> To explain the situation, I am managing some component based software used
> in a software product line style. Traditionally, we have always put all
> source code into one directory. This core software is then used to build
> custom applications, with a start point of copying the required set of core
> components to a new environment, and then getting on with the tailoring.
>
> We've got the entirety of the core system under version control, and also
> the entirety of project applications, but no easy way of linking the two.
> I've manually written some scripts which can be run on a project codebase to
> diff or retrieve an individual plugin from the core system. But I'd ideally
> like to be able to do this with mercurial.
>
> So an example component might comprise the files:
> email.plugin
> email_lib.c
> web_email_settings.c
> email_test.c
>
> I'd like the ability to add a feature to the core email plugin and do
> something like 'hg commit email'. Then from a project, be able to do a 'hg
> pull email' to grab that feature.
>
> Any ideas? I know I can wrap the whole thing in shell scripts, but if
> Mercurial already has something to handle this, I'd prefer to use that.
>
> Cheers,
>
> Andy
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial/attachments/20110120/07b164b2/attachment.htm>
More information about the Mercurial
mailing list