ignoring folders in mercurial

Try it without the slash after the caret in the regexp version. ^test/ Here’s a test: ~$ mkdir hg-folder-ignore ~$ cd hg-folder-ignore ~/hg-folder-ignore$ echo ‘^test/’ > .hgignore ~/hg-folder-ignore$ hg init ~/hg-folder-ignore$ mkdir test ~/hg-folder-ignore$ touch test/ignoreme ~/hg-folder-ignore$ mkdir -p srcProject/test/TestManager ~/hg-folder-ignore$ touch srcProject/test/TestManager/dont-ignore ~/hg-folder-ignore$ hg stat ? .hgignore ? srcProject/test/TestManager/dont-ignore Notice that ignoreme isn’t showing … Read more

Mercurial .hgignore for Visual Studio 2012 projects

By pulling from this previous answer about Visual Studio 2010, from this response in this question, and this wonderful citation I compiled this listing: ############################################################ ## Visual Studio 2012 ############################################################ syntax: glob ## User-specific files *.suo *.user *.sln.docstates ## Build results [Dd]ebug/ [Rr]elease/ x64/ build/ [Bb]in/ [Oo]bj/ ## MSTest test Results [Tt]est[Rr]esult*/ [Bb]uild[Ll]og.* *_i.c *_p.c … Read more

hg local ignore

This is what I was looking for. Add the following to the repo’s .hg/hgrc: [ui] ignore = /path/to/repo/.hg/hgignore and create a new file .hg/hgignore beside it. This new file will be untracked, but work the same as the versioned .hgignore file for this specific working copy. (The /path/to/repo bit is unfortunate but necessary to make … Read more

Mercurial ignore file

.hgignore does not need to be created before init It the config file will be used by others, you’d better commit the .hgignore so others dont have to create it, but this is not needed for mercurial to ignore your local files (see example) Yes .hgignore has to be in the root directory Simple example. … Read more