tf.exe info /version:T does not get latest

和自甴很熟 提交于 2019-12-08 03:08:09

问题


I am using tf.exe to get the latest information of a path but

tf.exe info $/Path /version:T

only gives me the very first info. But I need the latest ones obviously. Using VS2013 and the build-in history I can see the latest.

What could be the problem?


回答1:


You're requesting the info for the root directory. Normally such folders are only created once and as such will only have one history element. When you look at the history list in Visual studio, you're looking at the recursive history (of the folder and all the subfolders and files under it).

tf info has a /recursive option, but it will list the latest version of each file in source control (which isn't very helpful).

I suspect that you're after something from the results that tf info returns, so if you could update your question to explain what you need, there might be another command that can help you.

If you're looking for the latest changeset number under a specific path, then tf changeset /latest /noprompt might work for you.



来源:https://stackoverflow.com/questions/26349371/tf-exe-info-versiont-does-not-get-latest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!