Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I Export the Compare Folder results from Team Foundation Source Control

Having run a compare between a main branch folder and a given changeset in Source Control (Visual Studio TFS), and finding a number of differences, I would like to export the results to a spreadsheet so that it can be passed around and notes made etc...

Is there any way that I can export this list results from the Folder Difference screen?

Cheers

Nige

like image 889
KiwiNige Avatar asked Jan 27 '09 05:01

KiwiNige


People also ask

How do I compare codes in TFS?

Compare two versions of a file already checked into Team Foundation Version Control: On the menu bar, select View > Other Windows > Source Control Explorer. In Source Control Explorer, right-click a file and select View History. Select two versions of the file, right-click and select Compare.

How do I compare files in Visual Studio?

locate the required file in the Solution Explorer window, right-click it and choose Compare Selected File in the context menu; open the required file in Visual Studio, right-click the required document name in the document tab well and in the document's context menu select Compare Current File.

How do I compare two files in VS code?

Open VS Code with the files you are going to compare. Right-Click one file you want to compare => Select for Compare.

How do I search for a file in Source Control Explorer?

Right-Click In the File List, right-click the file you want to check in and select Source Control > Check In (for selected files) or Source Control > Project > Check In All (for all files in the project). Local Toolbar In the File List, select the file(s) you want to check in.


2 Answers

A good solution is to copy and paste into Excel.

Start at the top, select all the items Ctrl+C and then Ctrl+V into Excel.

like image 151
Joe Avatar answered Oct 23 '22 10:10

Joe


Not to take anything away from Joe's super cool answer, but I should point out this is also possible from the command line.

C:\Temp>tf folderdiff /?
TF - Team Foundation Version Control Tool
Copyright (c) Microsoft Corporation.  All rights reserved.

Displays a visual representation of the differences between files in two server
folders, in a server folder and a local folder, or in two local folders.

tf folderdiff [sourcePath] targetPath [/recursive] [/noprompt]
              [/server:serverName:port] [/filter:filter]
              [/filterLocalPathsOnly]
              [/view:same,different,sourceOnly,targetOnly]

Pass /noprompt (aka /i) to print a textual display to the console or redirect it to a file. E.g.:

tf folderdiff . /r /i > diffs.txt
like image 31
Richard Berg Avatar answered Oct 23 '22 11:10

Richard Berg