title: TFS API: Retrieve changesets from main branch using VersionControlServer.QueryHistory
body: <p>Given: TFS server with m > n changesets in team project X.</p>
  
  <p>I am using TFS API and would like to get the n latest changesets of that branch. </p>
  
  <p>I think I should be using <a href="http://msdn.microsoft.com/en-us/library/bb143089.aspx" rel="nofollow">VersionControlServer.QueryHistory</a>, but I don't understand how I can specify that I want all commits from main (default) branch of project X, but none from any other branch or from another team project in the collection.</p>