Foxer

Tell please, how to get list of files which are checked out programmatically For Visual Source Safe I used ssapi.dll createobjectex("{783CD4E4-9D54-11CF-B8EE-00608CC9A71F}","") and etc. How should I do for TFS

Re: Team Foundation Server - General How to get list of files which are checked out (on TFS) programmatically?

Luis Fraile

Have you take a look to the Source Control API http://msdn2.microsoft.com/en-us/library/microsoft.teamfoundation.versioncontrol.client(VS.80).aspx and http://msdn2.microsoft.com/en-us/library/microsoft.teamfoundation.versioncontrol.common(VS.80).aspx

Take specially care of this one which I think it can have something about this http://msdn2.microsoft.com/en-us/library/microsoft.teamfoundation.versioncontrol.client.versioncontrolserver_members(VS.80).aspx

I'm sorry I can't give concrete sample right now, but you have a lot of info in that links






Re: Team Foundation Server - General How to get list of files which are checked out (on TFS) programmatically?

Martin Woodward

Would you like to know the list of files check-out to you in a specified workspace (i.e. your pending changes) or do you want a list of all files checked out on the server under a specified path or something else

The links Luis pointed to should get you started, but feel free to provide more information aout exactly what you are trying to do if you want some help.

M.





Re: Team Foundation Server - General How to get list of files which are checked out (on TFS) programmatically?

Buck Hodges

If you want the changes for a single workspace, you can use the GetPendingChanges() method on the Workspace object. See http://blogs.msdn.com/buckh/archive/2006/03/15/552288.aspx for an example. If you want to get all of the changes in the system, you would need to use the QueryPendingSets() method on VersionControlServer (see http://msdn2.microsoft.com/en-us/library/microsoft.teamfoundation.versioncontrol.client.versioncontrolserver.querypendingsets(VS.80).aspx).

Buck






Re: Team Foundation Server - General How to get list of files which are checked out (on TFS) programmatically?

jwaters

Buck Hodges wrote:

If you want the changes for a single workspace, you can use the GetPendingChanges() method on the Workspace object. See http://blogs.msdn.com/buckh/archive/2006/03/15/552288.aspx for an example. If you want to get all of the changes in the system, you would need to use the QueryPendingSets() method on VersionControlServer (see http://msdn2.microsoft.com/en-us/library/microsoft.teamfoundation.versioncontrol.client.versioncontrolserver.querypendingsets(VS.80).aspx).

Buck

It would be very helpful to have a TFS powertoy that did this. I believe you will find a community of people who administer TFS but do not write code (and their developers are too busy checking code into TFS to work on a side project to develop this.)


Thanks for your consideration.





Re: Team Foundation Server - General How to get list of files which are checked out (on TFS) programmatically?

Richard Berg MSFT

Have you tried TFS Sidekicks The Status tool probably does everything you need.



Re: Team Foundation Server - General How to get list of files which are checked out (on TFS) programmatically?

jwaters

Thank you. I've used the tool succcessfully to send an email to folks requesting a checkin of items in order to rename a parent folder. :)