Click here to Skip to main content
15,887,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am able to fetch list of "Edit, Merge" type change sets on a TFS branch and now I wanted to get the source branch name from where changes have been merged. Could any on help me regarding this please. I tried using QueryMergeRelationships method, but no luck.

What I have tried:

TfsTeamProjectCollection proj_coll = new TfsTeamProjectCollection(new Uri("<tfs_url>"));
vcs = (VersionControlServer)proj_coll.GetService(typeof(VersionControlServer));

//relNotesReq.SourceLocation contains path of current request
var merges = vcs.QueryMergeRelationships(relNotesReq.SourceLocation);
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900