Wednesday, 15 April 2015

tfs - API - How to programmatically merge a list of merge candidates returned by .VersionControlServer.GetMergeCandidates? -



tfs - API - How to programmatically merge a list of merge candidates returned by .VersionControlServer.GetMergeCandidates? -

i creating clone of default merge window, add together feature.

i have merge candidates in grid command below:

mergecandidate[] candidates = tfs.getmergecandidates(edtselectedsource.text, cbxtargetbranchs.text);

now, user selected 1 or more candidates , need merge them.

but tfs api versioncontrol.merge requires source path , target path.

at first, question, need iterate each candidate , merge each file of changesets, 1 1 ? second, how obtains target path changeset ?

as long changesets continuous, can in single merge call. if not continuous, need submit n merges each continuous block. let's select changesets 10, 15 , 20 , these continuous (i.e. there no additional candidates between range) submit merge versionfrom of 10 , versionto of 20.

as far paths go, want utilize ones passed querymergecandidates , you'll want specify total recursion type well.

api tfs

No comments:

Post a Comment