other versions
- wheezy 2.2.2-4+deb7u2
- wheezy-backports 3.1.2-1~bpo70+1
- jessie 3.1.2-2+deb8u3
- jessie-backports 3.9.1-1~bpo8+1
- testing 4.0-1
- unstable 4.0-1
| HGIGNORE(5) | Mercurial Manual | HGIGNORE(5) |
NAME¶
hgignore - syntax for Mercurial ignore filesSYNOPSIS¶
The Mercurial system uses a file called .hgignore in the root directory of a repository to control its behavior when it searches for files that it is not currently tracking.DESCRIPTION¶
The working directory of a Mercurial repository will often contain files that should not be tracked by Mercurial. These include backup files created by editors and build products created by compilers. These files can be ignored by listing them in a .hgignore file in the root of the working directory. The .hgignore file must be created manually. It is typically put under version control, so that the settings will propagate to other repositories with push and pull.SYNTAX¶
An ignore file is a plain text file consisting of a list of patterns, with one pattern per line. Empty lines are skipped. The # character is treated as a comment character, and the \ character is treated as an escape character.syntax: NAME
- regexp
-
Regular expression, Python/Perl syntax.
- glob
-
Shell-style glob.
- Note
- Patterns specified in other than .hgignore are always rooted. Please see hg help patterns for details.
EXAMPLE¶
Here is an example ignore file.# use glob syntax. syntax: glob *.elc *.pyc *~ # switch to regexp syntax. syntax: regexp ^\.pc/