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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With