Created
March 4, 2011 16:06
-
-
Save ilkerde/854877 to your computer and use it in GitHub Desktop.
Finding out the "latest" (highest) revision of a local TFS workspace (aka tfs whereami)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(tf localversions . /recursive|?{$_ -match ".*;C.*"}|%{$_ -replace ".*;C",""}|group|%{$_.name}|sort -desc)[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tf localversions . /recursive|grep ".*;C.*"|sed "s/.*;C//g"|uniq|sort|tail -n 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment