mercurial - 如何在 Mercurial 命令中包含多个文件模式

标签 mercurial

Windows 上的 Mercurial 1.7.5。

我修改了几个文件,想将它们分成两个提交。为此,我正在使用 -I(或 --include)选项。文档状态:

-I --include PATTERN [+]     include names matching the given patterns

我还没有弄清楚如何包含多个模式。我试过了:
hg status -I C:\folderToSolution\Project1\**.cs C:\folderToSolution\Project3\**.cs
hg status -I C:\folderToSolution\Project1\**.cs +C:\folderToSolution\Project3\**.cs

(在提交之前使用状态来测试我的模式。)

在选项中获得多个模式的语法是什么?

最佳答案

指定 -I在每个模式之前

hg status -I C:\folderToSolution\Project1\**.cs -I C:\folderToSolution\Project3\**.cs
[+]在文档中意味着可以多次指定该选项。

关于mercurial - 如何在 Mercurial 命令中包含多个文件模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5252048/

相关文章:

mercurial - 如何获取自Mercurial的特定修订版以来受影响的文件列表

mercurial - 如何使用来自 nant 的 mercurial

Python Popen 无法在 Windows PowerShell 中使用正确的编码

svn - 是否可以关闭 'svn export' 的关键字替换?

mercurial - Mercurial 可以在不获取书签的情况下拉取吗?

mercurial - 从 BitBucket 存储库自动部署文件

mercurial - 如何在 Mercurial 上 merge 用户?

mercurial - 是否允许在 Mercurial 中对标签进行 rebase ?

merge - Octopus merge 是否可能在 mercurial 中

Mercurial:如何摆脱 "warning: xxxx uses revlog format 0"?