Search code examples
mercurialhgignore

How to ignore these path patterns with hg ignore of mercurial


I am quiet novice to Mercurial and I would like to ignore all files included in the followinf patterns:

folder1/folder2/folder3/Res1 folder1/folder2/folder3/Res2 folder1/folder2/folder3/Res3

I have used regex function as follow bu this did not work, any helo please :

syntax: regexp
folder1/folder2/folder3/Res*

Thanks Zied


Solution

  • You are sort of mixing glob and regexp style here. The following should work:

    syntax: regexp
    folder1/folder2/folder3/Res.+