DCSIMG
Where Is All The History When Using The Move Or Rename In Source Control? - Eran Ruso
Sign in | Join | Help

Where Is All The History When Using The Move Or Rename In Source Control?

פורסם בתאריך Mar 27 2011, 08:43 PM על ידי Eran Ruso | ישנם 1 תגובות

I hear this question a lot!!!

Microsoft in TFS 2010 has changed the rules in the Source Control, what happens now is when moving an Item or a Branch or using the Rename command all the history suddenly disappears.

When it happens the users are getting in to panic mode because all there history is not where they expect it to be…

So where is it and what do I need to do in order to see my history?

In order to see what happens lets create a similar situation where my history “disappears”:

I will take the branch Iteration 2 from Development folder to Release folder.

Step_1-_before_move

Checking the history of the branch shows me a big list of changesets.

Step_2_-_view_history_before_move

Step_3_-_result_of_view_history

Moving the branch…

Step_4_-_making_the_move

Now lets check the history, you can see that I get only one result, the Move action.

Step_5_-_view_history_on_new_location

Step_6_-_view_history_result

So what happened? basiclly the history belongs to the “old” location so it staied there.

When moving an object from one location to another the system deletes the old location and creates the new one, what we get is that History is under the deleted location.

Lets check it now…

Step_7_-_after_clicking_a_refresh_you_see_deleted

You can see that all the history is there…

Step_8_-_View_history_on_the_deleted_files

Step_9_-_all_history_results

You can use my post: “Show Deleted Items In TFS Source Control” to make the deleted files visible.

Have Fun!!!

רשימת תגובות

# March 28, 2011 – VS/TFS Links and Quick Hits | Learn TFS

פורסם בתאריך Monday, March 28, 2011 2:05 PM על ידי March 28, 2011 – VS/TFS Links and Quick Hits | Learn TFS  

Pingback from  March 28, 2011 – VS/TFS Links and Quick Hits | Learn TFS

שלח תגובה

(שדה חובה) 
(שדה חובה) 
(אופציונלי)
(שדה חובה) 

Enter the numbers above: