BVernon
BVernon

Reputation: 3747

When getting latest what exactly does "Getting" mean

In the output window some lines say "Getting" and some say "Replacing". Is "Getting" just informing you that it is checking out files you are already working on?

Upvotes: 1

Views: 54

Answers (2)

PatrickLu-MSFT
PatrickLu-MSFT

Reputation: 51093

Get Latest Version works in a check list method, means that when it gets a file from the server to your local file system it writes down the file and its version, it will not get that file again until the file version will be changed on the server.

In case you made local changes and changes have been made on the server the Get Latest Version will trigger the merge window in order to merge your local changes with the server changes. (Replacing)


This is due to your local workspace already have some source controlled files in TFS but with different version.

So when you get latest it will replaced the version you have in local. If you want to avoid this behavior, you could either back up your local files in the workspace first or directly create a new workspace and get latest there. Then you will not see those lines say "Replacing".

Beside, below is also a possibility:

When you get files and folders from the server, the system also deletes any checked-in files from your local workspace that have been deleted from the server. Files that have been renamed or moved on the server are changed in your workspace to match the changes on the server.

More details please refer this link in MSDN: Download (get) files from the Server

Upvotes: 1

Daniel Mann
Daniel Mann

Reputation: 59018

It means exactly what it says. "Getting" indicates it's a new file and it's being downloaded for the first time. "Replacing" indicates it's a changed file.

Upvotes: 1

Related Questions