开发者

Sourcegear Vault: How do I get an automated list of checked out files?

Question:

How can I get a list of all checked out files per user in Sourcegear Vault?

Use of this functionality:

From time to time we have developers leaving files checked out and although this results in drastic punishment (they owe a coffee to the person who needed the checked out file) we are still left with files checked out and work held up.

We would like to display a list of all current number of files checked out by each developer. This way they can chec开发者_JS百科k if they have anything checked out before they go home or out the office.


In the Vault Client app, use the Search tab at the bottom of the window.

Select Search By: "Checked Out By" to see a list of all files checked out by a specific user, or by any user.

You can choose to search a specific sub-folder, or from the root, recursively or not.

To automate this, use the Vault Command-Line client (vault.exe)

vault -host myhost.mydomain -user something -password something -repository myrepo listcheckouts

Will give you a list, in XML, of all checked-out files and their users. You can transform the results, or use the command-line client's source code (provided as an example with the Vault .NET API) as a starting point to write your own version.

The various clients and APIs can be grabbed from http://sourcegear.com/vault/downloads.html - didn't want to link to a specific version that would be outdated after the next release.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜