Saturday, 15 September 2012

IsBranch in tfs api is alway false -



IsBranch in tfs api is alway false -

i'm using tfs api , have need check if provide path tfs branch

i'll spare total code gets downwards to

m_versioncontrolserver.getitem(source).isbranch

for whatever reason returns false. missing or broken

you need phone call 1 of overload's of getitem() has getitemsoptions parameter , pass in getitemsoptions.includebranchinfo.

for example:

var isbranch = m_versioncontrolserver.getitem( path: source version: versionspec.latest, deletedstate: deletedstate.nondeleted, options: getitemsoptions.includebranchinfo).isbranch;

tfs

No comments:

Post a Comment