代码之家  ›  专栏  ›  技术社区  ›  Lea Cohen mark winkle

如何查看TFS中其他用户签出的所有项?

tfs
  •  23
  • Lea Cohen mark winkle  · 技术社区  · 16 年前

    我想要一个所有用户在TFS2005项目中签出的所有文件的列表。 我现在能看到的只有 我的 签出文件-在“挂起的更改”窗口中。我记得在源代码安全中有这样一个选项——在TFS2005中有吗?

    4 回复  |  直到 10 年前
        1
  •  16
  •   Ian Nelson    16 年前

    这个 October 2008 edition of the TFS Power Tools 包括“团队成员”功能,允许您这样做,等等。

    有关此功能的详细信息,请访问 Brian Harry's blog .

        2
  •  19
  •   xr280xr    12 年前

    我使用:

    tf status itemspec /user:* /recursive 
    

    在vs命令提示符中。itemspec是要搜索签出的项的tfs路径。无需额外安装;)

        3
  •  13
  •   Mitch Wheat    16 年前

    我通常使用 TFS SideKicks 为此。

        4
  •  2
  •   Maslow    10 年前

    电动工具选项: “打开Visual Studio,单击“文件”>“源代码管理”>“在源代码管理中查找”>“状态” 选择“显示所有签出”或“显示签出到的文件”(按用户筛选更改) 点击查找

    http://geekswithblogs.net/MikeParks/archive/2009/09/16/tfs---view-all-pending-changes-for-all-users.aspx

    γ

    使用.NET的另一种方法(完成 source )

    using(var tfsPc=new TfsTeamProjectCollection(tfsUri))
    
        {
            var vcs=tfsPc.GetService<Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer>();
    
            var srcRoot=vcs.GetItem(srcpath);
    
    
            var pendings=vcs.QueryPendingSets(new[]{srcRoot.ServerItem}, RecursionType.Full,null,null).AsEnumerable();
            if(onlyLocks)
                pendings=pendings.Where(pq=>pq.PendingChanges.Any(pc=>pc.IsLock));
            if(minDate.HasValue)
                pendings=pendings.Where(pq => pq.PendingChanges.Any( pc => pc.CreationDate > minDate.Value));
            var pendingQuery=pendings
                .OrderByDescending(p=>p.PendingChanges.Max(d=>d.CreationDate));
            pendingQuery.Dump("pending");   
    
    
        }
    

    similar to above, but join the ActiveDirectory to get a user's name