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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:48:10+00:00 2026-05-15T19:48:10+00:00

This sounds kind of complex, so let me explain: Project_A has lived for some

  • 0

This sounds kind of complex, so let me explain:

Project_A has lived for some time within its own Mercurial repository. Project_A is now getting folded into a new super project, Super-Project_B. Super-Project_B also has a mercurial repository. We would prefer if Project_A were not a subrepo, but instead just a normal child, but we also don’t want to lose the history. Is there a way to do this?

  • 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-15T19:48:10+00:00Added an answer on May 15, 2026 at 7:48 pm

    Yeah. Use the convert extension to move projectA down one directory level:

    hg convert --filemap filemap.txt projectA projectA-redone
    

    where your filemap.txt has this line in it:

    rename . projectA
    

    (that dot might be a slash but I don’t think so).

    That will give you a new repo, projectA-redone, that has all the history of A though all the changesets will have different hashes since their content (paths) have changed to get “projectA” in front of all of them.

    Then you go into Super-Project_B and do a hg pull -f /path/to/projectA-redone. You need the -f because otherwise you’ll be told that the repos are unrelated since they have no changesets in common.

    Finally you’ll do a hg merge in Super_project_b which should have no conflicts (unless you already had a projectA directory, in which case you should’ve picked a different name or hg removed it first).

    After doing that B will have all of A inside the projectA subdirectory and all history will be intact.

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

Sidebar

Related Questions

I know this sounds kind of vague, but please let me explain- I'm starting
This is kind of hard to explain, so bear with me. In PHP, if
I know this sounds kind of stupid, but as a beginner in Django (and
I know the question sounds too vague so let me explain exactly what I
This sounds dumb, but I can't get it to work. I think i just
This sounds really stupid, but I was told that you could drag-and-drop visual components
This sounds like a look-up-in-the-manual question to me, but I can't find it. Suppose
This sounds funny..just a little experiment. i wanted to simulate a drag drop of
This sounds like a really simple question, but I am new to PHP. If
This sounds simple but my regex knowledge is limited. I need an expression to

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.