Can I copy file history to TFS2010?

I am browsing my code base and refactoring some things. Sometimes I come across files with this content in one file:

public class A { // Tons of code } public class HelperThatWasOriginallyOnlyUsedHereButHasExpandedToBeUsedEverywhere { // Tons of code } 

Since this file has existed for a long time, it has a rather long list of change settings.

Unfortunately, it is in a file called "A.cs", where it may be more appropriate to be in two files: "A.cs" and "HelperThatWasOriginally .... cs".

I want the new file (the second class in the file) to be easily traced to its beginning (A.cs), but put a note at the top of the new file, for example, "this file was originally part of A. cs" seems a bit hockey and easily missed out of sight.

I really don’t know how TFS can internally resolve this, because I see that the two files had change histories that conflicted before the split date (they were the same file), but I was hoping it would be perhaps.

+4
source share
1 answer

This is a little treasure. You can fork a file that saves a shared history. Then remove the unnecessary classes from each of your new files.

+3
source

All Articles