.hgignore syntax for ignoring only files, not directories?
问题 I have a problem which I can't seem to understand. I'm using TortoiseHg (version 0.7.5) on Windows but on Linux I have the same problem. Here it is: My .hgignore file: syntax: regexp ^[^\\/]+$ What I'm trying to achieve is to add to the ignore list the files which are in the root of the hg repository. For example if I have like this: .hg +mydir1 +mydir2 -myfile1 -myfile2 -anotherfile1 -anotherfile2 .hgignore I want myfile1(2) and anotherfile1(2) to be ignored (names are only for the purpose