title: Explaining tf diff
body: <p>Using Visual Studio 2008 tools,</p>
  
  <p>I am trying to get an ASCII diff of change sets 14318 and 14317.</p>
  
  <p>I can do so using GUI:</p>
  
  <pre><code>tf changeset 14318
  </code></pre>
  
  <p>and then select a file and right-click and select compare with previous version. However, this is a bit tedious and it is GUI-based. My task at hand is to back-port many changes into a different branch. I would like to automate the testing (say using Python), making sure that I did it correctly. Well, for educational purposes I will make all changes by hand without looking at the solution, and then I will compare the two changes and try to look for any differences. Here is what I love about tf - I can type:</p>
  
  <pre><code>tf changeset 14318 &gt; out.txt&amp;&amp;notepad out.txt
  </code></pre>
  
  <p>to view the details of what files were affected.</p>
  
  <p>Similarly, I wish to get an out.txt with all the differences saved in it. I am pretty sure that I can handle the Python part. I definitely want to know how to do it using the tf.exe tool, but if you also happened to know other tricks for accomplishing this (some cool 3rd party tool, or PowerShell script, then please let me know as well).</p>
  
  <p>Thank you!</p>
  
  <p>Oh, by the way, I checked this: <a href="http://msdn.microsoft.com/en-us/library/6fd7dc73(VS.80).aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/6fd7dc73(VS.80).aspx</a></p>
  
  <p>And I tried this:</p>
  
  <pre><code>tf diff 14318 14317
  </code></pre>
  
  <p>And I have gotten this error: File (or folder) c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\14318 does not exist.</p>
  
  <p>Now thank you.</p>
  
  <p><strong><em>EDIT:</em></strong> Are there any tools at all that can do this?</p>