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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:22:17+00:00 2026-05-18T00:22:17+00:00

I am using code from a CVS controlled repository (@sourceforge). Instead of using it

  • 0

I am using code from a CVS controlled repository (@sourceforge). Instead of using it directly, I was using a git clone of it made by someone else. In my clone I have several modifications.

In the meantime the upstream project has switched to SVN (@googlecode). I was able to create an automatically updated git clone of that myself.

Now I would like to apply my previous modifications of the CVS/git into the SVN/git. The SHA’s are unfortunately different for the same commits.

  • 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-18T00:22:17+00:00Added an answer on May 18, 2026 at 12:22 am

    Assuming that your patches are in a single linear sequence, you can do this pretty easily using “git format-patch” and “git am”. First switch the new repository to the revision from which your changes should sprout and create a new branch to hold your changes:

    cd $NEWREPO
    git checkout -b my-changes $SPROUT_POINT
    

    Then use “git format-patch” to export the range R1..R2 of commits that you want to migrate and “git am” to apply them in the new repository:

    (cd $OLDREPO; git format-patch -k --stdout R1..R2) | (cd $NEWREPO; git am -k)
    

    I recommend first applying the patches to the revision corresponding to the CVS revision from which they originally sprouted, as this should succeed without any conflicts. Then, if necessary, use “git rebase” within the new repository to move the commits to the tip of the appropriate Subversion branch.

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

Sidebar

Related Questions

I come from a CVS background. I'm currently investigating using SVN for a project.
I can convert html files to pdfs with iTextSharp using code from Kyle in
I'm using some code to extract from a Google Url the keyword of the
I'm trying to execute custom JS code from a Firefox extension using: function executeJS(document,
I'm prettyd comfortable with Git, an I've been using it for over a year
I have an app hosted on SourceForge (https://sourceforge.net/projects/pokedroid/). I decided to add a button
I have interesting thing here, I'm using xcode 4 for my project and I
I am checking one line of code from my project if ( (test ==
I'm working on a tool that generates C code from a specification. Users thus
I am having some difficulty understanding how to use tags versus branches in git

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.