TFS query (in Visual Studio) to get all check-ins

后端 未结 6 1915
执念已碎
执念已碎 2021-02-01 04:10

I\'m trying to get a list of all check-ins (limited / ordered by date) via the TFS query editor in Visual Studio Team Explorer.

I can make a query that lists all bugs, s

6条回答
  •  孤街浪徒
    2021-02-01 04:21

    Here is what we use

    USE [Tfs_DefaultCollection]   
    
    SELECT distinct cs.CreationDate, cs.[ChangeSetId], c.DisplayPart, cs.[Comment] 
    from [tbl_ChangeSet] AS cs 
    left outer JOIN [tbl_Identity] AS i ON cs.[OwnerId] = i.[IdentityId] 
    left outer JOIN [Constants] AS c ON i.[TeamFoundationId] = c.[TeamFoundationId] 
    left outer join dbo.tbl_Version as v on v.Versionfrom = cs.ChangeSetId 
    WHERE creationdate > '04/12/2012' 
    and (v.fullpath like '%\Web%' 
    or v.FullPath like '%\Databases%')
    ORDER BY cs.[CreationDate] desc
    

提交回复
热议问题