如何通过注释文本查找和查看 TFS 变更集?

发布于 2024-07-21 07:36:37 字数 76 浏览 3 评论 0原文

使用 TFS,我需要通过评论和/或开发人员查找变更集。 也许我今天只是瞎了眼,但我在源代码管理资源管理器中没有看到执行此任务的简单方法?

With TFS I need to find a changeset by comment, and/or by developer. Maybe I'm just blind today, but I don't see a simple way in the Source Control Explorer to do this task?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(11

终难遇 2024-07-28 07:36:37

如果您安装了 TFS Power Tools,则可以在命令提示符中运行此命令:

tfpt searchcs

以获取一个 GUI 窗口,其中包含按提交者和注释文本进行搜索的选项。 我正在使用 TFS Power Tools(2011 年 3 月版) 和TFS 2010。

If you have TFS Power Tools installed, you can run this in a command prompt:

tfpt searchcs

to get a GUI window with options to search by committer and comment text. I'm using TFS Power Tools (March 2011 version) and TFS 2010.

你的呼吸 2024-07-28 07:36:37

EASY WAY并且不需要第3方应用程序/附加组件:

  1. 打开源代码控制资源管理器
  2. 从TFS服务器的根目录
  3. “查看历史记录”滚动到底部(连续点击“结束”按钮速度很快)
  4. 选择所有记录,复制
  5. 打开 Excel 并粘贴

现在 Excel 将允许您搜索评论(Excel 是本机应用程序,不要争论......)。

EASY WAY and no 3rd party apps/add-ons needed:

  1. Open Source Control Explorer
  2. "View History" from the root of TFS server
  3. Scroll to the bottom (it's fast with hitting "End" button continuously)
  4. Select all records, copy
  5. Open Excel and paste

Now the Excel will allow you to search through comments (Excel's a native app, don't argue..).

半边脸i 2024-07-28 07:36:37

安装电动工具后:

tf history $/ -r | ? { $_.comment -like '*findme*' }

With the Power Tools installed:

tf history $/ -r | ? { $_.comment -like '*findme*' }
暗地喜欢 2024-07-28 07:36:37

现在有一个 Visual Studio 加载项可以执行此操作: http://visualstudiogallery .msdn.microsoft.com/3f65dee8-5a44-4771-929b-26531c482fbf

握住我的手 2024-07-28 07:36:37

或者,无需安装电动工具,如果您查找搜索词 findme,则以下命令将起作用。

Windows:tf 历史记录“$/团队项目/开发”/noprompt /recursive | findstr findme

Linux:tf History "$/Team Project/Development" /recursive | grep findme

NB。 请感谢这个家伙,如果你发现这很有用。

Alternatively, without having to install power tools, the following command will work if your looking for the search term findme.

Windows: tf history "$/Team Project/Development" /noprompt /recursive | findstr findme

Linux: tf history "$/Team Project/Development" /recursive | grep findme

NB. Please thank this guy if you found this useful.

时间海 2024-07-28 07:36:37

您可以使用命令行客户端:通过管道传输 tf 的输出历史记录到文件,然后使用您喜欢的任何搜索程序。

You can use the command line client: pipe the output of tf history to a file and then use whatever search program you prefer.

宛菡 2024-07-28 07:36:37

我不知道如何通过注释文本来做到这一点,但这将允许开发人员进行搜索:

如果您打开菜单项文件 - >源代码控制 - >在源代码控制中查找 - >更改集...(您必须位于源代码管理资源管理器中才能使用)。 这将打开“查找变更集”对话框。 然后,您可以在给定的源文件夹(或项目)上搜索开发人员的更改集。

这将向您显示评论,但您无法通过它们进行搜索。 (尽管您可以按注释对列表进行排序,并以这种方式找到您要查找的注释。)

附带说明,如果您想通过此对话框查看变更集的详细信息,则必须单击“详细信息”按钮。 双击变更集可关闭对话框。

I don't know a way to do it by Comment Text, but this will allow searching by developer:

If you open the menu item File->Source Control->Find In Source Control->Changesets... (you must be in Source Control Explorer for this to be available). This will open the Find Changesets dialog. You can then search for change sets by Developer on a given source folder (or project).

This will show you the comments, but you can't search by them. (Though you can sort the list by the comments and find the comment you are looking for that way.)

On a side note, if you want to see the details of the changeset via this dialog you have to click the Details button. Double clicking on a changeset closes the dialog.

同展鸳鸯锦 2024-07-28 07:36:37

要查看团队成员的签入:

在团队资源管理器中,导航到团队项目,导航到团队成员,右键单击要查看变更集的团队成员,然后选择“显示签入历史记录”。

To see the checkins for a team member:

In team explorer, navigate to the Team Project, navigate to Team Members, right click the team member for who you want to see the changesets, and select "Show CheckIn History".

唱一曲作罢 2024-07-28 07:36:37

我从 TFS Power Tools 添加了 tfpt searchcs 作为 VisualStudio 中的外部工具:

  • 命令:C:\Program Files (x86)\Microsoft Team Foundation Server 2015 Power Tools\TFPT.EXE
    (或您安装 TFS Power Tools 的任何位置)
  • 参数: searchcs /collection:http://tfsserver:8080/tfs $(SolutionDir)
    (解决方案路径转换为服务器路径)
  • 初始目录:c:\path\to\your\vs\IDE(除非tf.exe在您的路径中(默认情况下并非如此)这确保您可以从搜索对话框中查看变更集详细信息,因为它运行 tf.exe

I added tfpt searchcs from the TFS Power Tools as external tool in VisualStudio:

  • Command: C:\Program Files (x86)\Microsoft Team Foundation Server 2015 Power Tools\TFPT.EXE
    (or wherever you installed your TFS Power Tools)
  • Arguments: searchcs /collection:http://tfsserver:8080/tfs $(SolutionDir)
    (the solution path is converted to the server path)
  • Initial Directory: c:\path\to\your\vs\IDE (unless the tf.exe is in your path (what is not the case by default) this ensures you can view the changeset details from the search dialog, for it runs tf.exe)
对风讲故事 2024-07-28 07:36:37

我能够在 TFS Web 门户代码部分中执行此操作。

在浏览器中导航到 TFS,转到代码,单击更改集,然后单击高级搜索。 您可以按用户和日期范围进行过滤。 您无法通过评论进行搜索,但如果您有一个大致的日期范围,那么您可以对其进行过滤,然后使用浏览器搜索(ctrl + f)。

I was able to do this in the TFS web portal code section.

Navigate to TFS in your browser, go to code, click on changesets, then advanced search. You can filter by user and date range. You can not search by comment, but if you have a general date range in mind then you can filter it down then use the browsers search (ctrl + f).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文