Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to resolve pending changes after renaming a folder

I renamed a folder correctly in Visual Studio (shows as a move) but after merging down to the parent branch, I've now got numerous conflicts that I'm unable to resolve.

They show up in the 'Resolve Conflicts' window with the Description, 'You have a conflicting pending change.' against each conflict.

enter image description here

If I try to resolve by taking the server or the local version, they disappear but reappear seconds later.

I've tried tf undo * /recursive from the parent folder but that reports 'no pending changes to undo' and I've tried delete the entire folder and 'Get Specific Version..' and forced over-write but nothing I do can get rid of these conflicts.

like image 328
Dog Ears Avatar asked Dec 27 '22 11:12

Dog Ears


2 Answers

I ended up deleting the workspace and re-getting the latest code before trying the merge again, and everything worked fine. I'm guessing there was some sort of corruption in the workspace.

like image 81
Dog Ears Avatar answered Jan 14 '23 13:01

Dog Ears


This worked for me:
1. Exit Visual Studio
2. Open a command window and navigate to the folder: "%localappdata%\Microsoft\Team Foundation\"
3. Navigate to the sub folders for every version and delete the sub folder "cache" and its contents
4. Restart Visual Studio and connect to TFS.
5. Undo/Get Latest Version.

like image 24
Ludwo Avatar answered Jan 14 '23 11:01

Ludwo