c# - Queryhistory for a range of changeset in TFS for specific info -



c# - Queryhistory for a range of changeset in TFS for specific info -

i trying utilize c# , tfs release log out of comments of changesets in tfs.

i have code:

const string tfsurl = "http://dev.ger.test.com:8080/tfs"; var tpc = new tfsteamprojectcollection(new uri(tfsurl)); versioncontrolserver vcs = (versioncontrolserver)tpc.getservice(typeof(versioncontrolserver)); var tp = vcs.getteamproject(@"mycollection"); var path = tp.serveritem; path += @"/project/subproject"; var q = vcs.queryhistory(path, versionspec.latest, 0, recursiontype.full, null, null, null, 1, true, true, false, false); foreach (var item in q) { console.writeline(item); logger(item.tostring(), false); }

which works, returns latest changeset , info within changeset.

so questions are:

how specify range of changeset in queryhistory versionspec.1000 versionspec.latest?

how can manipulate item in foreach loop display specifig info item.comment ?

any help appreciated!

edit: edited queryhistory be

var q = vcs.queryhistory(path, versionspec.latest, 0, recursiontype.full, null, new changesetversionspec(23618), versionspec.latest, 1, true, true, false, false);

which changed nil unfortunately.

it should this:

var changes = vcs.queryhistory( path, versionspec.latest, 0, recursiontype.full, null, versionspec.parsesinglespec("c100", null), // starting changeset 100 versionspec.parsesinglespec("c200", null), // ending changeset 200 int.maxvalue, true, false); foreach(changeset alter in changes) { console.writeline("{0} {1}", change.changesetid, change.comment); }

it changesets 100 200 , list ids , comments

c# tfs

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -