According to the man pages
hg add -X [pattern]
Should exclude all files matching [pattern] from being added. The man entry is
-X, –exclude
exclude names matching the given patterns
However, when I try to use -X it does not work.
hg add -X *.map
hg add -X "*.map"
both include all “.map” files in all subdirectories. Example:
adding map_files/tRNAs/tRNAs_chr8.map
adding map_files/tRNAs/tRNAs_chr9.map
adding map_files/tRNAs/tRNAs_chrX.map
What gives?
I think (because I’m too lazy to test)
hg add -X "set:**.map"will play game (maybe even without set: part), just because
noted in “Using patterns to identify files” section on mentioned by @VonC page