【问题标题】:Find committed files that should have been ignored查找本应被忽略的已提交文件
【发布时间】:2014-05-22 12:57:27
【问题描述】:

如何列出存储库中已提交(显式)的所有文件,尽管它们因 .hgignore 文件而被忽略

  • .hgignore 使用 glob 语法
  • 在 Windows 上运行
  • 没有必要考虑任何全局 .hgignore 文件

我的想法:
hg manifest > 使用 .hgignore 的内容过滤 > 结果

【问题讨论】:

  • 您不能将清单通过管道传送到 .hgignore 的 过滤器 中。但是,您可以使用 Mercurial TipsAndTricks 中描述的方法列出您想要的文件:mercurial.selenic.com/wiki/…

标签: mercurial hgignore


【解决方案1】:

在这种情况下你必须学习和使用文件集

列出 .hgignore 中但已被跟踪的文件:

hg locate "set:hgignore() and not ignored()"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-11
    • 1970-01-01
    • 2023-03-19
    • 2016-06-15
    • 2015-12-30
    相关资源
    最近更新 更多