Retrieve all files or changesets that have changed between two tags

Is it possible to extract a list of only modified files between two shortcuts? My ultimate goal is to extract a list of files that have changed between label2 and label3. I was able to get TFS for output using the tf history command below; unfortunately, this command will pull out all elements modified before Label3.

tf history /server:http://tfsserver:8080/tfs "$/source/path/main" /recursive /noprompt /format:detailed /version:"Llabel3" >> C:\temp\tfshistory.txt

+4
source share
2 answers

I realized my mistake, with the command above you can get all changes changes between two shortcuts, while you add "~" to the / version key: for example:

tf history /server:http://tfsserver:8080/tfs "$/source/path/main" /recursive /noprompt /format:brief /version:"Llabel2~Llabel3" >> C:\temp\tfshistory.txt

This will extract and create a list of all change sets between Label 2 and Label 3. You can also do the same by replacing Label3 with "T", instead extract all change sets from Label2 to Latest (T).

+1
source

You can get what you want if you replace '/ format: brief' with '/ format: detail'

+1
source

All Articles