A coworker had asked me the other day if it was possible to get a list of changes for a subfolder with a certain name. This subfolder lets call it Views is located in multiple places on the branch.
I tested out to see if you could place wildcards in the itemspec path. The answer is no you cannot. You can only place wildcards at the end. For example this does not work:
tf history -server:http://tfs/tfs/MyCollection $/MyProject/Branches/Database/MSSQL/*/Views/* -recursive -format:detailed –noprompt
This does work:
tf history -server:http://tfs/tfs/MyCollection $/MyProject/Branches/Database/MSSQL/* -recursive -format:detailed –noprompt
In the end you would have to write a script to sort through the files in each changeset and filter out just the changesets returned that had /View/ in the path. If I get some time to write this script I will post it. Hope this help you.
No comments:
Post a Comment