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 6137201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:41:46+00:00 2026-05-23T17:41:46+00:00

At my organization, we’d like to switch from using CVS to Mercurial for a

  • 0

At my organization, we’d like to switch from using CVS to Mercurial for a variety of reasons. We’ve done a lot of investigation when trying to determine how we should organize our Hg repositories based on what we have in our codebase and how we tend to work. We’ve come up with satisfactory answers to most of our questions, but there’s one point that’s stumping us a little, and it’s driving me mad because the most convenient way to organize the repo for our workflow just seems like the wrong way to go from a conceptual standpoint. I’m trying to figure out whether our perception of how this is “supposed” to work is wrong, or whether we’re just bumping up against a legitimate feature gap in the available tooling.

Primarily we maintain a medium sized codebase consisting of a suite of applications that get all get released in the same package. Conceptually you can divide our code into three categories:

  1. Shared code
  2. Application code for our primary suite (uses the shared code)
  3. Miscellaneous small utilities that are infrequently maintained (uses the shared code)

This doesn’t seem unusual to me, but I want to stress the point that we maintain the application code and the shared code at the same time and always want them to be bleeding edge with respect to each other. That is, we want all our application builds to always use the latest version and the same version of the shared code. We frequently add to or modify application code and shared code at the same time. Currently, the shared code is in one CVS module, and the applications are all in their own separate modules. The shared code and application modules are checked out such that the shared code gets built once and then linked into each application. We frequently do cvs commits that include changes across shared and application modules at once. We would really like to keep that ability.

I understand that commits in Hg are atomic within repositories — that’s fine but I’d like to be able to diff and commit to an application and a shared library at the “same time” (i.e. I don’t care if it’s really atomic but I don’t want to have to manually do two separate diffs and two separate commit actions).

Conceptually, it seems like it would be correct to have one or a few repos for the shared code, and a separate repo for each application and each little utility program. This means you’d need to check out multiple repos for each build but that isn’t a problem for us. The problem is there doesn’t seem to be any tooling that lets you view updates or changes on multiple repos at once, or diff multiple repos at once and then sequentially commit them for you. This would be easy to script, but that wouldn’t help developers who want to use various GUI frontends to complement the command line.

It seems like in order to be able to commit across multiple codebases at once (from a user’s perspective) and keep everything on the bleeding edge together, the only two solutions are:

  1. Use a monolithic repo with EVERYTHING in it.
  2. Create some subrepos but access/commit everything through a big monolithic “main” repo that contains all the subrepos to keep everything on the latest revisions (which doesn’t seem any better than (1) to me).

It can’t be that unusual to want to work with multiple “peer” repositories at the same time, even if the actions aren’t truly atomic across all of them — and yet I’m not finding tons of articles or posts clamoring for this ability.

In summary:

  1. We would like to organize our code such that we can diff and commit application code and shared code at the same time from the user’s perspective (they need not truly be atomic).
  2. It seems like we should be putting application code and shared code in separate repositories.
  3. Subrepositories tie parent repositories to specific revisions, which we do not want.

What am I missing here?

  • 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-05-23T17:41:47+00:00Added an answer on May 23, 2026 at 5:41 pm

    In my shop, we have many projects that are simply in separate repos, but the main application’s repo has 2 other projects in it. One is a module that shares a significant amount of code with the main application, and the other is for database migrations for the application (it’s even in a different language). I wanted related changes in both the application and the migrator to be committed together, inseparably. Altogether, all source files in this repo are between 10 and 11 MB.

    So if putting everything in one repository is really what makes sense because you don’t want to deal with subrepositories, then there’s nothing wrong with putting everything in one repository. The one of mine is on the small side of medium, in my opinion. TortoiseHg’s source is around 20 MB, OGRE is over 100 MB.

    Without knowing more about your projects and their relationships, the impression I get is that a single repository would work just fine, and that you’re not looking at this incorrectly.

    If you change your mind, hg convert can help you extract projects into their own repository, maintaining the history of those files.

    If the one-repository approach is not for you, then I think subrepos should be given a chance, as that is the only other method I know of for treating multiple repos cohesively that is supported in TortoiseHg (see the Recommendations section).

    However, I’m not sure how you would deal with the inter-department access, given that it doesn’t seem there is an established subset already shared with others.

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

Sidebar

Related Questions

I'm using the Organization Service URI to upload documents to our SharePoint site from
My organization is rewriting our database-driven website from scratch including a brand new database
I have a folder organization that looks like this: link.sh dist/MyApp-3.0.0/script.sh dist/MyApp-3.0.0/lib/*.jar The link.sh
In previous organization, 'cvs annotate' used to give annotation w.r.t modifier login id. This
Our organization's custom build tools write out a lot of intermediate data, and I'd
My organization is in the process of upgrading from Access 2003 to Access 2007.
For easier organization, I'd like to namespace a couple folders under my /spec directory.
My organization wants to be able to regularly read in data from an external
My organization is getting into mobile development. I'd like to have 1 icon on
SELECT COUNT(organization.ID) FROM organization WHERE organization.NAME IN ( SELECT organization.NAME FROM organization WHERE organization.NAME

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.