version-controlmercurialbitbuckethgignore

What's wrong with my .hgignore file? (nothing is being ignored)


The content of my .hgignore file as follow and NOTHING is being ignored:

^nbproject$
^.htaccess$
^my.conf$
/media/images/captcha/.*\.jpg$

I tried to place the file in the main project repository folder and in the working directory.

What's wrong? Please help.


Solution

  • Add this line to the top of the file:

    syntax: regexp
    

    As for where the .hgignore file should go, per https://www.mercurial-scm.org/wiki/.hgignore

    The .hgignore file sits in the working directory, next to the .hg folder.