Welcome to MSDN Blogs Sign in | Join | Help

Determine the last synced version for a folder in TFS

Have you ever need to find the last synced version of a folder in TFS? Here is a quick way:

  • Change directory to YourFolder
  • tf  history  .  /r  /version:W  /stopafter:1  /i

Note the "." (current directory).

This command recursively lists the history for the YourFolder but stops after the first output entry which is the latest synced version. The /version:W scopes the command to just looking at your local workspace version and not the latest on the server.

Hope this helps.

-Tan

Published Thursday, June 05, 2008 1:24 PM by PermanentTan

Comments

# Dog Breeding » Determine the last synced version for a folder in TFS

Anonymous comments are disabled
 
Page view tracker