How to include multiple file templates in a Mercurial command

Mercurial 1.7.5 on Windows.

I have several files that I changed and want to split them into two commits. To do this, I play with the -I (or --include) option. Status of documents:

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

I was not able to figure out how to include some more templates. I tried:

 hg status -IC:\folderToSolution\Project1\**.cs C:\folderToSolution\Project3\**.cs hg status -IC:\folderToSolution\Project1\**.cs +C:\folderToSolution\Project3\**.cs 

(Using state to check my pattern before committing.)

What is the syntax for getting more than one pattern in an option?

+8
mercurial
source share
1 answer

Specify -I before each pattern

 hg status -IC:\folderToSolution\Project1\**.cs -IC:\folderToSolution\Project3\**.cs 

[+] in the documentation means that the parameter can be specified more than once.

+14
source share

All Articles