Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS checkin problem after a couple of directories renames & file moves

Tags:

tfs

I get following error from TFS now when I try to checkin my entire solution.

TF203057: Cannot check in the rename change for folder $/XXX because there are files or folders in this folder with pending rename or delete changes. You must check in the rename and delete changes together. No files checked in.

Of course I am checking in everything together. I cannot checkin even a single unrelated file now cause it still fires this I am unable to find a page with such TF error. What can be done to get TFS to checkin ?

I tried to checkout whole project, but it didnt help. Now its whole on checkout by me ..

like image 694
Valentin Kuzub Avatar asked Jun 27 '11 09:06

Valentin Kuzub


3 Answers

Hmm actually it wasn't working when checked in from solution view. When I went to team explorer and checked in from source code panel there it worked fine. Ill leave this cause it appears it will be the first time that error is mentioned.

like image 119
Valentin Kuzub Avatar answered Nov 15 '22 06:11

Valentin Kuzub


I just ran into a similar issue and got it resolved by checking the changes in from within 'Source Control Explorer' instead of 'Solution Explorer'.

My scenario: With VS2013, I tried to check-in changes from within 'Solution Explorer' after I had dragged and dropped folders and files from one checked-in project to another in the same solution. I received the same error as the original poster for hundreds of files. I opened 'Source Control Explorer' and checked in from there. I received a different warning message about conflicts which I ignored and was able to check-in.

like image 11
GrayDwarf Avatar answered Nov 15 '22 06:11

GrayDwarf


I have encountered this issue after moving source code to different directory in TFS. I was not able to check-in the pending files in the newly moved directory. The below approach worked for me:

  1. Exclude all the files that has pending changes.

  2. Checked in only renamed folder from the Source Control.

  3. Take Latest.

  4. Include all pending changes.

  5. Checked in pending changes.

This worked perfectly for me.

like image 2
RahulGo8u Avatar answered Nov 15 '22 07:11

RahulGo8u