Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial project overlapping?

Tags:

mercurial

I have a site/backoffice solution that works with this structure:

/bo         // mercurial repo
/site       // site files
/www/admin  // mercurial repo
/var        // site specific vars

The backoffice works seamless across several sites and therefore all projects have a mercurial repo and code contributions done to project A always get replicated on projects B and C. This has worked well so far but now I feel I should also be doing a repo to the root /.

Is it possible? Can I have a repo on / excluding both the /bo and the /www/admin and have it all work nicely together or should I anticipate problems?

like image 580
Frankie Avatar asked Mar 05 '26 01:03

Frankie


1 Answers

You could setup a repo at the root, and:

  • declare /site and /var as SubRepos,
  • while ignoring /bo and /www/admin

That way, all your current repos still go on unchanged, but you also have one global repo with only what you need.

like image 111
VonC Avatar answered Mar 07 '26 05:03

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!