星期二, 7月 31, 2012

export change set from TFS

tf history $/project /format:detailed /recursive /noprompt > d:\20120731d.txt

help file
c:\>tf history /?
TF - Team Foundation 版本控制工具
Copyright (c) Microsoft Corporation. All rights reserved.

顯示一或多個檔案和資料夾的修訂記錄。

tf history [/server:servername] itemspec [/version:versionspec]
[/stopafter:number] [/recursive] [/user:username]
[/format:(brief|detailed)] [/slotmode] [/noprompt]

Versionspec:
Date/Time Dmm/dd/yyyy
或任何 .Net Framework 支援的格式
或任何本機電腦的日期格式
Changeset number Cnnnnnn
Label Llabelname
Latest version T
Workspace Wworkspacename;workspaceowner

add date range

tf history /server:http://MYTFSSERVER:8080 $/MYTEAMPROJECT/FOLDER /recursive /format:brief /user:* /version:D"04/28/2008"~D"04/29/2008" /noprompt

ref from Mark Brown's Blog

沒有留言: