Keep track of overlapping repositories

Stephen Moore delfick755 at gmail.com
Mon Nov 15 00:51:46 CST 2010


Hello,

I'm pretty sure what I'm about to ask isn't possible... but for that
small chance it's possible to make an extension for it, I'll ask for
help :)

For some django projects I've started, I have the following structure
in my web folder for all the configuration files

(I have several projects, but I'll only talk about a generic
"project1" and "project2")

- sites
    - common
       - project1
       - project2
       - same (settings common across all projects)
    - config
       - Several folders here, could be multiple per project.
Basically uses what's found in common, plus some extra customisation)
    - wsgi
        - wsgi file per each site described in config (it is
recommended these be separate)


I could have all these things together in separate folders per project
like I used to, but I prefer to keep them organised in this way.

The problem I have is I don't want to chuck all this in the same repo.
I'd rather still keep stuff related to each project separate from
other projects.

So the question becomes, is it possible to have more than one repo
share the same folder and each be in control of parts of that folder ?

Maybe:
* have something like .hginclude which becomes the opposite of .hgignore
* have an option when cloning a repository into a folder that already
contains a repository that says the two repos share the same folder
and change .hg to be .hg.project1 and .hg.project2, etc
* have to specify which project I'm referring to when I use the hg command

Thankyou

Regards,
Stephen


More information about the Mercurial mailing list