##// END OF EJS Templates
check-code: check txt files for trailing whitespace
Mads Kiilerich -
r18960:170fc094 default
parent child Browse files
Show More
@@ -237,6 +237,15 b' pyfilters = ['
237 (?P=quote))""", reppython),
237 (?P=quote))""", reppython),
238 ]
238 ]
239
239
240 txtfilters = []
241
242 txtpats = [
243 [
244 ('\s$', 'trailing whitespace'),
245 ],
246 []
247 ]
248
240 cpats = [
249 cpats = [
241 [
250 [
242 (r'//', "don't use //-style comments"),
251 (r'//', "don't use //-style comments"),
@@ -292,6 +301,7 b' checks = ['
292 inrevlogpats),
301 inrevlogpats),
293 ('layering violation ui in util', r'mercurial/util\.py', pyfilters,
302 ('layering violation ui in util', r'mercurial/util\.py', pyfilters,
294 inutilpats),
303 inutilpats),
304 ('txt', r'.*\.txt$', txtfilters, txtpats),
295 ]
305 ]
296
306
297 class norepeatlogger(object):
307 class norepeatlogger(object):
@@ -24,7 +24,7 b' matching the mercurial version you want '
24 http://www.microsoft.com/downloads/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf
24 http://www.microsoft.com/downloads/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf
25 for 64-bit:
25 for 64-bit:
26 http://www.microsoft.com/downloads/details.aspx?familyid=bd2a6171-e2d6-4230-b809-9a8d7548c1b6
26 http://www.microsoft.com/downloads/details.aspx?familyid=bd2a6171-e2d6-4230-b809-9a8d7548c1b6
27
27
28 The py2exe distutils extension
28 The py2exe distutils extension
29 http://sourceforge.net/projects/py2exe/
29 http://sourceforge.net/projects/py2exe/
30
30
@@ -94,7 +94,7 b' file (x86_Microsoft.VC90.CRT_(...)_9.0.2'
94 amd64_Microsoft.VC90.CRT_(...)_9.0.21022.8(...).manifest for x64), copy it in the
94 amd64_Microsoft.VC90.CRT_(...)_9.0.21022.8(...).manifest for x64), copy it in the
95 dist directory and rename it to Microsoft.VC90.CRT.manifest.
95 dist directory and rename it to Microsoft.VC90.CRT.manifest.
96
96
97 Before building the installer, you have to build Mercurial HTML documentation
97 Before building the installer, you have to build Mercurial HTML documentation
98 (or fix mercurial.iss to not reference the doc directory):
98 (or fix mercurial.iss to not reference the doc directory):
99
99
100 cd doc
100 cd doc
@@ -84,7 +84,7 b' Files'
84 This file can be used to define local tags which are not shared among
84 This file can be used to define local tags which are not shared among
85 repositories. The file format is the same as for ``.hgtags``, but it is
85 repositories. The file format is the same as for ``.hgtags``, but it is
86 encoded using the local system encoding.
86 encoded using the local system encoding.
87
87
88 Some commands (e.g. revert) produce backup files ending in ``.orig``,
88 Some commands (e.g. revert) produce backup files ending in ``.orig``,
89 if the ``.orig`` file already exists and is not tracked by Mercurial,
89 if the ``.orig`` file already exists and is not tracked by Mercurial,
90 it will be overwritten.
90 it will be overwritten.
@@ -1,5 +1,5 b''
1 Mercurial supports a functional language for selecting a set of
1 Mercurial supports a functional language for selecting a set of
2 files.
2 files.
3
3
4 Like other file patterns, this pattern type is indicated by a prefix,
4 Like other file patterns, this pattern type is indicated by a prefix,
5 'set:'. The language supports a number of predicates which are joined
5 'set:'. The language supports a number of predicates which are joined
@@ -7,7 +7,7 b' patterns.'
7 Alternate pattern notations must be specified explicitly.
7 Alternate pattern notations must be specified explicitly.
8
8
9 .. note::
9 .. note::
10 Patterns specified in ``.hgignore`` are not rooted.
10 Patterns specified in ``.hgignore`` are not rooted.
11 Please see :hg:`help hgignore` for details.
11 Please see :hg:`help hgignore` for details.
12
12
13 To use a plain path name without any pattern matching, start it with
13 To use a plain path name without any pattern matching, start it with
@@ -79,6 +79,6 b' Examples'
79
79
80 - resynchronize draft changesets relative to a remote repository::
80 - resynchronize draft changesets relative to a remote repository::
81
81
82 hg phase -fd 'outgoing(URL)'
82 hg phase -fd 'outgoing(URL)'
83
83
84 See :hg:`help phase` for more information on manually manipulating phases.
84 See :hg:`help phase` for more information on manually manipulating phases.
General Comments 0
You need to be logged in to leave comments. Login now