~ubuntu-branches/ubuntu/precise/mercurial/precise-updates

« back to all changes in this revision

Viewing changes to doc/hgignore.5

  • Committer: Bazaar Package Importer
  • Author(s): Vincent Danjean, Javi Merino, Vincent Danjean
  • Date: 2010-07-04 09:55:28 UTC
  • mfrom: (1.2.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20100704095528-bzag1mhfylss9zth
Tags: 1.6-1
[ Javi Merino ]
* New upstream release (1.6). Many bug fixes and improvements. Among
    them:
  - push: break infinite http recursion bug with Python 2.6.5
       (issue2179 and issue2255) (Closes: #586907)
  - zeroconf: Don't use string exceptions (Closes: #585250)
* Removed patch for_upstream__bashism_in_examples.patch since a fix for
    #581122 is included upstream.
* Updated Standards-Version to 3.9 (no change needed)

[ Vincent Danjean ]
* debian/control:
  + Use Breaks instead of Conflicts
  + Use a fixed version in Replaces
    I put 1.4 but it has been a long time since nothing has been moved
    from mercurial to mercurial-common

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
31
31
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
32
32
..
33
 
.SH SYNOPSIS
 
33
.SH Synopsis
34
34
.sp
35
 
The Mercurial system uses a file called \fB.hgignore\fP in the root
 
35
The Mercurial system uses a file called \fC.hgignore\fP in the root
36
36
directory of a repository to control its behavior when it searches
37
37
for files that it is not currently tracking.
38
 
.SH DESCRIPTION
 
38
.SH Description
39
39
.sp
40
40
The working directory of a Mercurial repository will often contain
41
41
files that should not be tracked by Mercurial. These include backup
42
42
files created by editors and build products created by compilers.
43
 
These files can be ignored by listing them in a \fB.hgignore\fP file in
44
 
the root of the working directory. The \fB.hgignore\fP file must be
 
43
These files can be ignored by listing them in a \fC.hgignore\fP file in
 
44
the root of the working directory. The \fC.hgignore\fP file must be
45
45
created manually. It is typically put under version control, so that
46
46
the settings will propagate to other repositories with push and pull.
47
47
.sp
48
48
An untracked file is ignored if its path relative to the repository
49
49
root directory, or any prefix path of that path, is matched against
50
 
any pattern in \fB.hgignore\fP.
 
50
any pattern in \fC.hgignore\fP.
51
51
.sp
52
 
For example, say we have an untracked file, \fBfile.c\fP, at
53
 
\fBa/b/file.c\fP inside our repository. Mercurial will ignore \fBfile.c\fP
54
 
if any pattern in \fB.hgignore\fP matches \fBa/b/file.c\fP, \fBa/b\fP or \fBa\fP.
 
52
For example, say we have an untracked file, \fCfile.c\fP, at
 
53
\fCa/b/file.c\fP inside our repository. Mercurial will ignore \fCfile.c\fP
 
54
if any pattern in \fC.hgignore\fP matches \fCa/b/file.c\fP, \fCa/b\fP or \fCa\fP.
55
55
.sp
56
56
In addition, a Mercurial configuration file can reference a set of
57
 
per\-user or global ignore files. See the \%\fBhgrc\fP(5)\: man page for details
 
57
per\-user or global ignore files. See the \fI\%\fBhgrc\fP(5)\fP man page for details
58
58
of how to configure these files. Look for the "ignore" entry in the
59
59
"ui" section.
60
60
.sp
61
61
To control Mercurial\(aqs handling of files that it manages, see the
62
 
\%\fBhg\fP(1)\: man page. Look for the \fB\-I\fP and \fB\-X\fP options.
63
 
.SH SYNTAX
 
62
\fI\%\fBhg\fP(1)\fP man page. Look for the \fC\-I\fP and \fC\-X\fP options.
 
63
.SH Syntax
64
64
.sp
65
65
An ignore file is a plain text file consisting of a list of patterns,
66
 
with one pattern per line. Empty lines are skipped. The \fB#\fP
67
 
character is treated as a comment character, and the \fB\e\fP character
 
66
with one pattern per line. Empty lines are skipped. The \fC#\fP
 
67
character is treated as a comment character, and the \fC\e\fP character
68
68
is treated as an escape character.
69
69
.sp
70
70
Mercurial supports several pattern syntaxes. The default syntax used
78
78
.ft P
79
79
.fi
80
80
.sp
81
 
where \fBNAME\fP is one of the following:
 
81
where \fCNAME\fP is one of the following:
82
82
.INDENT 0.0
83
83
.TP
84
 
.B \fBregexp\fP
 
84
.B \fCregexp\fP
85
85
.sp
86
86
Regular expression, Python/Perl syntax.
87
87
.TP
88
 
.B \fBglob\fP
 
88
.B \fCglob\fP
89
89
.sp
90
90
Shell\-style glob.
91
91
.UNINDENT
94
94
follow, until another syntax is selected.
95
95
.sp
96
96
Neither glob nor regexp patterns are rooted. A glob\-syntax pattern of
97
 
the form \fB*.c\fP will match a file ending in \fB.c\fP in any directory,
98
 
and a regexp pattern of the form \fB\e.c$\fP will do the same. To root a
99
 
regexp pattern, start it with \fB^\fP.
100
 
.SH EXAMPLE
 
97
the form \fC*.c\fP will match a file ending in \fC.c\fP in any directory,
 
98
and a regexp pattern of the form \fC\e.c$\fP will do the same. To root a
 
99
regexp pattern, start it with \fC^\fP.
 
100
.SH Example
101
101
.sp
102
102
Here is an example ignore file.
103
103
.sp
115
115
^\e.pc/
116
116
.ft P
117
117
.fi
118
 
.SH AUTHOR
119
 
.sp
120
 
Vadim Gelfer <\%vadim.gelfer@gmail.com\:>
121
 
.sp
122
 
Mercurial was written by Matt Mackall <\%mpm@selenic.com\:>.
123
 
.SH SEE ALSO
124
 
.sp
125
 
\%\fBhg\fP(1)\:, \%\fBhgrc\fP(5)\:
126
 
.SH COPYING
 
118
.SH Author
 
119
.sp
 
120
Vadim Gelfer <\fI\%vadim.gelfer@gmail.com\fP>
 
121
.sp
 
122
Mercurial was written by Matt Mackall <\fI\%mpm@selenic.com\fP>.
 
123
.SH See Also
 
124
.sp
 
125
\fI\%\fBhg\fP(1)\fP, \fI\%\fBhgrc\fP(5)\fP
 
126
.SH Copying
127
127
.sp
128
128
This manual page is copyright 2006 Vadim Gelfer.
129
129
Mercurial is copyright 2005\-2010 Matt Mackall.