如何搜索历史 Mercurial 文件内容?

发布于 2024-12-19 01:58:06 字数 132 浏览 2 评论 0原文

我在代码中发现了一个问题,其中曾经指定过某些内容,但现在不再指定,因此我想通过存储库的历史记录搜索特定字符串。

有没有办法在 TortoiseHg 中做到这一点? 我知道这需要一段时间,但我会花更长的时间......

I've found an issue in my code where something used to be specified, but is no longer, so I want to search for a particular string through the history of the repository.

Is there a way to do this in TortoiseHg? I know it would take a while, but it'd take me longer...

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

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

发布评论

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

评论(3

淡墨 2024-12-26 01:58:06

如果您不介意通过命令行使用 Mercurial,可以使用 hg grep。它可能暴露在 TortoiseHg 工作台的某个地方,但我不知道。

If you don't mind working with Mercurial via the command line, there's hg grep. It's probably exposed somewhere in the TortoiseHg Workbench, but I don't know.

惟欲睡 2024-12-26 01:58:06

菜单“查看”-> “搜索”。这将打开搜索窗格,您可以使用它来搜索工作副本中的字符串

  • 的特定修订
  • 、所有历史记录、包含文件模式
  • 和排除文件模式

Menu "View" -> "Search". This will open the search pane which you can use to search for strings inside your

  • working copy, all history, specific revision
  • with inclusion file patterns
  • and exclusion file patterns
冷月断魂刀 2024-12-26 01:58:06

hg grep --all --files-with-matches MyKeyword

请参阅hg help grep

hg grep --all --files-with-matches MyKeyword

see hg help grep

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