kyooryu
kyooryu

Reputation: 1509

TFS - Latest field still showing "Yes" after deleting local files

In TFS Source Control Explorer my items are marked "Yes" in Latest field even though I have deleted all my local files. Is there a way to reevaluate that column so it shows "Not Downloaded" again?

Upvotes: 4

Views: 1256

Answers (3)

Ivan Santiago
Ivan Santiago

Reputation: 1782

Here is the solution if you want to delete your files from your local file system (using Windows Explorer for example) and change the column “Latest” in the Source Control Explorer from “Yes” to “Not downloaded”.

Go to “Get Specific Version…” on the files and select Changeset 1.

Changeset 1 is a special changeset on your TFS instance. If you do a get for changeset 1 on any actual files then they will not exist at that point in time on the system so will be deleted locally and the server will know this.

Link with the info: Removing source control files from your local file system

Upvotes: 7

You should change the scope of your workspace to reflect what you do want locally.

You can also use the Cloak option to prevent sub folders.

https://msdn.microsoft.com/en-us/library/ms181378.aspx#mappings

You should never delete files locally when using a server workspace. If you use a local workspace TFS will lend delete those files from source.

Upvotes: 1

qxg
qxg

Reputation: 7036

Source Control Explorer reflects actions you performed to TFS instead of local file system. Please treat them separately. Visual Studio tries to keep them in sync, but it doesn't prevent you from deleting files directly.

Use tf get <files> /Force to re-get files you just deleted.

Upvotes: -1

Related Questions