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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:21:53+00:00 2026-05-20T03:21:53+00:00

During refactoring, I sometimes have to split one source file into two or more

  • 0

During refactoring, I sometimes have to split one source file into two or more (for example, when a class has become so big that it should be split up into two classes).

For example, let A be the original file, and B1 and B2 the new files.

Is it possible to tell SVN that B1 and B2 should both “inherit” the complete history of file A, so when I look at both the history logs of B1 and B2, I can see that they have been emerged out of A, and the logs look like this:

A                B1                  B2
- change A3      - change B1.2       - change B2.2
- change A2      - change B1.1       - change B2.2
- change A1      - change A3         - change A3
                 - change A2         - change A2
                 - change A1         - change A1

I know how to keep the history when I rename a file (like discussed here on SO), but AFAIK that is only a way to keep the history of A associated with either B1 or B2, not both.

Currently I am using Tortoise SVN 1.6.12 on Windows.

  • 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-20T03:21:53+00:00Added an answer on May 20, 2026 at 3:21 am

    Just make 2 SVN copies of file A and then SVN delete File A.

    I have just made a quick test with a new repo and it seems to work perfectly.

    1. I created file A.txt with two classes B1 and B2 inside and committed file a.txt
    2. I made a SVN copy of A.txt to B1.txt and remove the declaration of class B2 from B1.txt
    3. I made another SVN copy of A.txt to B2.txt and remove the declaration of class B1 from B2.txt
    4. I SVN deleted A.txt
    5. Commited everything and the history looks good.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

During transformation, who I can combine one node into another. for example, when Attributes/Attribute/Type=ComplexAttr
During Session Start, one has access to the Request object. How about Session End,
I'm refactoring existing class to support Products import from CSV file.   Requirements: 1)
During the process of building software applications, you would start testing what you have
During some recent refactoring we changed how our user avatars are stored not realizing
During conversion old, 2008 database project into 2010 database project using features like Partial
During PDf generation in Jasper, I have 2 bands having table in each, if
I'm refactoring a bunch of classes, written by different people, which do not have
During my apprenticeship, I have used NHibernate for some smaller projects which I mostly
During refactoring it would be quite handy just to copy part of HAML template

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.