変更セット取得のサンプルコード
C#サンプル
Uri orgUrl = new Uri("http://hostname:8080/tfs/DefaultCollection/");
var credentials = new WindowsCredential();
var connection = new VssConnection(orgUrl, credentials);
TfvcHttpClient tfvcClient = connection.GetClient<TfvcHttpClient>();
var changes = tfvcClient.GetChangesetsAsync().Result;
foreach (var tfvcChange in changes)
{
Console.WriteLine(tfvcChange.Comment);
}
pythonサンプル
personal_access_token = 'access_token'
organization_url = 'http://hostname:8080/tfs/DefaultCollection/'
credentials = BasicAuthentication('', personal_access_token)
connection = Connection(base_url=organization_url, creds=credentials)
changes = tfvc_client.get_changesets()
for x in changes:
print(x)