Question

I am having issues trying to mark files as 'Delete' that have been deleted from my local machine by an application. The issue is that these files no longer exist so TFS will not process them as 'Deleted'.

I have downloaded the TFS 2012 Power Tools and tried to run 'tfpt.exe online /deletes /recrusive ' but this simply gives me a list of folders that these missing files sit in, not a list of each and every file themselves. This means that when I click 'Pend changes' I get the following error message for each command -

"One or more children have pending changes".

My question is, is anyone aware of a method I can use to carry out this process?

Was it helpful?

Solution

It sounds like tfpt online is detecting that the folders have been deleted. It is trying to pend a delete on those folders, but it sounds like you have already pended different changes on the files within those folders.

tfpt online will not pend a deletion of the folders if you have other changes pended for its children.

If you want to delete the folders, undo the pending changes on their children, make sure that the contents on-disk match what you want, then re-run tfpt online.

OTHER TIPS

If there's not too many files you could run the destroy command in Visual Studio Command Prompt.

Destroys, or permanently deletes, version-controlled items from Team Foundation version control.

Command

tf destroy $/MyProject/Files/123.cs /collection:http://servername:8080/tfs/myproject
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top