Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8972979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:20:47+00:00 2026-06-15T18:20:47+00:00

We are developing an in-house framework that several projects are going to use. The

  • 0

We are developing an in-house framework that several projects are going to use.
The idea is to have the entire framework tracked as a mercurial
subrepository of each project’s repository. This resulted in the following
subrepo tree (see thin-shell
repository
):

ProjectMaster/
    Project/
    CommonLib/
    FrameworkMaster/
        Framework/
        CommonLib/
  • Does this make any sense to you? Is there a better/simpler way to handle these
    dependencies which doesn’t involve subrepositories?
  • Specifically, does it make sense to have both CommonLib subrepositories?
  • If not, would it make sense for Project to use FrameworkMaster/CommonLib? This
    could get messy if the dependencies were more complicated.
  • Where would you open feature branches? On the master? Only in the relevant
    subrepository?

    • If you don’t have feature branches on the master, every time you clone the
      repository you end up getting the subrepo state of the last commit, which may put
      any subrepo in any random feature branch. Very confusing.
    • If you have feature branches on the master, you still need a feature branch
      in at least one subrepo to avoid having unnamed heads there.

In general, this solution sounds difficult to work with. Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:20:48+00:00Added an answer on June 15, 2026 at 6:20 pm

    As per description in the thin-shell repository documentation:

    For a thin-shell repository, all repositories containing 'real' code 
    have no subrepositories of their own (ie. they are leaf nodes). They can 
    thus be treated as completely ordinary repositories and a developer can 
    largely ignore the additional complexities of subrepositories. Work can 
    continue in these repositories even if their siblings become unavailable. 
    

    The resulting structure you have described has nested subrepositories that contains ‘real’ code and hence its not the recommended way. As per mercurial documentation, the recommended structure would be as following (I don’t know if /FrameworkMaster/ was included as just place holder for nested subrepositories or it also have ‘real’ code. If /FrameworkMaster/ also has ‘real’ code then it should also be included in following as sibling leaf node):

    ProjectMaster/
        Project/
        Framework/
        CommonLib/ 
    

    So, to answer your questions:

    • Does this make any sense to you? Is there a better/simpler way to handle these dependencies which doesn’t involve subrepositories?

    The better/simpler way would be to use the thin-shell repository to simplify the complex dependencies.

    • Specifically, does it make sense to have both CommonLib subrepositories?

    If both Project and Framework are depending on same version or branch of CommonLib then it doesn’t make sense to have it at both places. But if for some legacy reasons Project and Framework are requiring different version or branch of CommonLib then it does make sense to have CommonLib at both places.

    • Where would you open feature branches? On the master? Only in the relevant subrepository?

    Not sure here what you mean by feature branches. Did you meant to say ‘future’ here?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a framework for various in-house CRUD apps. I've considered several MS
We have a software house developing code for us on a project, .NET Web
I'm developing various in-house extensions for JIRA, the issue tracker we use. So far
Developing for Android 2.3, I have a question regarding layouts. I use a vertival
I am developing a project management application for in-house use. For storing project requirements,
I'm developing an in-house .NET application that will be run on a VM (with
An in house application that I'm developing is behaving strange on a Windows 7
I'm currently developing a monitoring application for some in-house hardware using net-snmp. I have
I have a strange problem... I am developing a web app to search house
We have an in house developed web-based admin console that uses a combination of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.