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

  • Home
  • SEARCH
  • 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 4345432
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:02:08+00:00 2026-05-21T12:02:08+00:00

First, I have a very large cvs repository and I’m trying to switch things

  • 0

First, I have a very large cvs repository and I’m trying to switch things over to mercurial. The cvs repository consists of several directories, sort of like the situation in this question. However, each subdirectory is not an entire independent project. Each project uses a subset of the whole but their intersections are not empty.

Here’s an example to clarify:

/cvsroot
    .../core
    .../feature-1
    .../feature-2

Project 1 uses core and feature-1; project 2 uses core and feature-2. I don’t want people who work on project 2 to have the feature-1 directory in their working copies, because it’s actually a set of about 30 directories and a not insignificant amount of space.

Is there a way to deal with this easily (or, alternatively, well) with mercurial? I thought about using a separate repository for the intersection, but that’s suboptimal. It means doing an extra pull and extra updates and probably writing a bunch of scripts to manage it.

My other alternative was replicating the intersection in each. That’s no good though because it’s likely to cause the common code to fork, since different people work on different parts of it.

  • 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-21T12:02:08+00:00Added an answer on May 21, 2026 at 12:02 pm

    Using Mercurial subrepositories should help here. I would define core, feature-1, and feature-2 as independent repositories and then link them together using the subrepository feature. Project 1 would pull in core and feature-1, while Project 2 would pull in core and feature-2. Each of the underlying repos only exists once, so different projects are effectively sharing them.

    You can configure the subrepos so that when Project 1 performs a commit and push, it pushes to both core and feature-1, or you can require the user to commit to them explicitly by navigating into the directory and treating them like a normal repo.

    Finally, you can only create subrepos on a repository level. In other words, you can’t create them on a per file level.

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

Sidebar

Related Questions

I have a very large (~6GB) SVN repository, for which I've written a batch
First of all, let me say I am very new to rails, have been
I want to build an enterprise application that will have very large number of
I have a very large database with about 120 Million records in one table.I
I have a very large CSV file and I need to write an app
I have a very large collection of (p, q) tuples that I would like
I have a very large C project with many separate C files and headers
I have a very large column-delimited file coming out of a database report in
We have a very large JavaScript application, where after many months of coding there
We have a very large GWT project that results in a monolithic app about

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.