我正在寻找TFS的方法,我需要在2个日期之间为个别开发者获取代码行更改,您认为它是否可以通过TFS实现?
感谢任何帮助,谢谢!
答案 0 :(得分:1)
查看TFS数据仓库。有一个FactCodeChurn
表应包含您之后的数据。
答案 1 :(得分:0)
您可以使用以下SQL查询语句:
SELECT TeamProjectProjectNodeName
,checkedinbyname
,SUM([LinesAdded]) AS
,SUM([LinesModified]) AS
,SUM([LinesAdded]+[LinesModified]) AS
,CONVERT(VARCHAR(10), MIN(DateTime),120) AS
,CONVERT(VARCHAR(10),MAX(DateTime),120) AS
FROM [Tfs_Warehouse].[dbo].[CodeChurnView] WHERE TeamProjectProjectNodeName='xxx' AND ChangesetTitle NOT LIKE 'xx' AND FilenameFileExtension IN('.css','.cs','.aspx','.sql','js','.ascx') AND (LinesDeleted <>0 OR LinesModified<>0 OR FilenameFilePath LIKE '$/XX' AND FilenameFileExtension IN('.sql')) AND NetLinesAdded>=0 GROUP BY TeamProjectProjectNodeName, checkedinbyname
ORDER BY DESC
注意:您必须有权访问 Tfs_Warehouse 数据库才能执行上述声明。