title: How does VS 2005 provide history across all TFS Team Projects when tf.exe cannot?
body: <p>In Visual Studio 2005, in the TFS Source Control Explorer, these is a top-level node for the TFS Server itself, with a child node for each Team Project. Right-clicking either the server node or the node for a Team Project gives a context menu on which there is a <code>View History</code> item. Selecting this gives you a History window showing the last 200 or so changesets, either for the specific Team Project chosen, or across all Team Projects.</p>
  
  <p>It is this history <em>across all Team Projects</em> that I am wondering about. The command-line <code>tf.exe history</code> command provides (as I understand it) basically the same functionality as is provided by the VS TFS Source Control plug-in. But I cannot work out how to get <code>tf.exe history</code> to provide this <em>across-all-Team-Projects</em> history.</p>
  
  <p>At a command line, supposing I have <code>C:\</code> mapped as the root of my workspace, and <code>Foo</code>, <code>Bar</code>, and <code>Baz</code> as Team Projects, I can do</p>
  
  <pre><code>C:\&gt; tf history Foo /recursive /stopafter:200
  </code></pre>
  
  <p>to get the last 200 changesets <em>that affected Team Project <code>Foo</code></em>; or from within a Team Project folder</p>
  
  <pre><code>C:\Bar&gt; tf history *.* /recursive /stopafter:200
  </code></pre>
  
  <p>which does the same thing for Team Project <code>Bar</code> - note that the wildcard <code>*.*</code> is allowed here.</p>
  
  <p>However, none of these work (each gives the error message shown):</p>
  
  <pre><code>C:\&gt; tf history /recursive /stopafter:200
  </code></pre>
  
  <blockquote>
    <p>The history command takes exactly one item</p>
  </blockquote>
  
  <pre><code>C:\&gt; tf history *.* /recursive /stopafter:200
  </code></pre>
  
  <blockquote>
    <p>Unable to determine the source control server</p>
  </blockquote>
  
  <pre><code>C:\&gt; tf history *.* /server:servername /recursive /stopafter:200
  </code></pre>
  
  <blockquote>
    <p>Unable to determine the workspace</p>
  </blockquote>
  
  <p>I don't see an option in the docs for <code>tf</code> for specifying a workspace; it seems to only want to determine it from the current folder.</p>
  
  <p>So what is VS 2005 doing? Is it internally doing a history on each Team Project in turn and then sticking the results together??</p>
  
  <p><em>note also that I have tried with Power Tools; <code>tfpt history</code> from the command line gives exactly the same error messages seen here</em></p>