How to work without access to subrepository in Mercurial

143 views Asked by At

There is a project repository A that uses framework subrepository B. Internal team has access to both. Is it possible to limit access to B for external team without breaking possibility to work with A?

Currently it says "abort: response expected (in subrepo ...)" when cancel password entering during cloning. Or maybe there is another way for collaboration with different access rules?

Thanks in advance!

1

There are 1 answers

0
Ry4an Brase On

Sorry, not possible. Actions on the "parent" repo require at least read access to the "child" repo. It's probably a lot of work at this point, but one thing to consider is making them both "sibling" repositories of an "outer" umbrella repo. That setup would look like:

 UMBRELLA
     PROJECT
     FRAMEWORK

Then people w/ access to both can checkout UMBRELLA and have both in known, predictable locations and can still do commits across both from a single location. Those that can access PROJECT but not FRAMEWORK would check out only PROJECT.