TFS 实用程序或直接 SQL
我想获取给定日期范围内签入的 TFS 文件的数量。我希望此数据包含(签入)计数并按 [TFS 文件名] 和 [TFS 工作项类型] 分组。我见过一些对 TFS 数据库的直接查询,但它们似乎不适用于 TFS 2010。
有任何 TFS 2010 专家可以提供 sql 查询,或者向我指出一个最好的开源实用程序可以执行此操作吗?
I would like to get the count of TFS files checked in for a given date range. I would like this data to include the count(of check-ins) and group by [TFS file name] and [TFS work item type]. I have seen some direct queries to the TFS database, but they don't seem to work with TFS 2010.
Any TFS 2010 gurus out there who can provide a sql query, or point me to a preferably open source utility that does this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
今天我第二次遇到与这个强大的查询相关的问题VersionControlServer: QueryHistory :)
我不确定是否已经有这样的实用程序,但您可以编写一些快速代码来使用上述查询准确执行您想要的操作。
对于特定路径(如果递归标志为 true,该路径可能是目录及其下的所有内容),此查询将为您提供两个版本之间发生的变更集列表(这些版本可以是日期)。
变更集是签入的单位。变更集包含文件列表以及与其关联的工作项列表。现在,您有足够的信息来计算文件数量、签入数量,并按文件和/或工作项类型对结果进行分组。
如果您不熟悉使用 TFS API(又名 TFS 对象模型),请告诉我,我可能会发布一些指导。
The second time today I came across a question related to this powerful query of VersionControlServer: QueryHistory :)
I'm not sure if there's already such a utility, but you can write up some quick code to perform exactly what you want using the above query.
For a specific path, which could be a directory and everything under it if the recursive flag is true, this query will give you a list of changesets that occurred between two versions (these versions can be dates).
A changeset is a unit of checkin. A changeset contains a list of files and a list of work items that were associated with it. Now you have enough information to count the number of files, the number of checkins, and group the results by file and/or work item type.
If you are new to using the TFS APIs (aka TFS Object Model), let me know and I can probably post up some pointers.