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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:16:32+00:00 2026-05-20T08:16:32+00:00

I have been migrating from subversion to mercurial piecemeal and this has created a

  • 0

I have been migrating from subversion to mercurial piecemeal and this has created a bit of a tangle. I had an old SVN server (pre 1.4) to start with so here is what happened.

  1. HgSubversion did not want to pull in the full history from trunk, so I did a shallow convert.
  2. My colleagues did their last commits to SVN and I pulled those into Hg.
  3. We moved over to Hg and started pushing to it
  4. Just to be safe one of my colleagues made some more commits to SVN.
  5. I managed upgrade the SVN server and get the full repo to the new SVN.
  6. HgSubversion pulled in the full history successfully – including the few extra/duplicate commits.

Now I would like to “transplant” the commits in the shallow mercurial repository into the full history, the repositories are related in content but unrelated in mercurial hashes.Short of just copy pasting content what would be the best way to migrate the changes ? Eventually everybody should be able:

  1. To switch the Hg repo with full history and keep working
  2. Have automated push from the Hg repos of suitable squashed/rebased changesets to SVN as a service user.

I would like a concrete example with the following scenario.

  • Last mercurial hash at step 2 – A
  • Current mercurial hash after pushes step 3 – B
  • Hash of last commit after pull from upgraded SVN – C
  • Hash of step 2 commit after full SVN history pull – D

I am not very good at ASCII art, feel free to add one for bonus points.

  • 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-20T08:16:32+00:00Added an answer on May 20, 2026 at 8:16 am

    We did a CVS -> Mercurial migration last week at work. Like in your case, some people continued to use the CVS for a time.

    In order to sync the the two repositories when the CVS server was finally shutdown, I did the following :

    1. Convert the CVS to mercurial via cvs2hg
    2. Export each new revision with hg export
    3. Import the patch files with hg patch

    There was only a dozen revisions, so this was no big deal… If you have many more revisions, you could maybe take a look at the transplant extension.

    Hope this helps.

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

Sidebar

Related Questions

I have been migrating a client's website from a Bluehost account to my own
I am migrating an application from ExtJS 3.x to v4 and have been having
I've been migrating a system from MS SQL to Oracle and have been more
Sorry if this question has been asked many times. I have a DOS .exe
I've been following the Subversion -> Git migration guide here: https://stackoverflow.com/a/3972103/1107232 I'm migrating from
Have been working on this question for a couple hours and have come close
For a couple of weeks now, I have been working on migrating my client
I have been experiencing dirty pages flushing problem in MySQL server. This occupies lot
I have a website in which I am migrating membership from ASP.NET services to
I have Core Data application and I have been migrating (upgrading) the core data

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.