##// END OF EJS Templates
merge with stable
Martin Geisler -
r14694:c67c41af merge default
parent child Browse files
Show More
@@ -244,8 +244,7 b' def grep(mctx, x):'
244 return [f for f in mctx.subset if r.search(mctx.ctx[f].data())]
244 return [f for f in mctx.subset if r.search(mctx.ctx[f].data())]
245
245
246 _units = dict(k=2**10, K=2**10, kB=2**10, KB=2**10,
246 _units = dict(k=2**10, K=2**10, kB=2**10, KB=2**10,
247 M=2**20, MB=2**20, G=2**30, GB=2**30,
247 M=2**20, MB=2**20, G=2**30, GB=2**30)
248 kiB=10**3, MiB=10**6, GiB=10**9)
249
248
250 def _sizetoint(s):
249 def _sizetoint(s):
251 try:
250 try:
@@ -280,9 +279,8 b' def size(mctx, x):'
280 File size matches the given expression. Examples:
279 File size matches the given expression. Examples:
281
280
282 - 1k (files from 1024 to 2047 bytes)
281 - 1k (files from 1024 to 2047 bytes)
283 - 1.0kiB (files from 1000 to 1100 bytes)
284 - < 20k (files less than 20480 bytes)
282 - < 20k (files less than 20480 bytes)
285 - >= .5MiB (files at least 500000 bytes)
283 - >= .5MB (files at least 524288 bytes)
286 - 4k - 1MB (files from 4096 bytes to 1048576 bytes)
284 - 4k - 1MB (files from 4096 bytes to 1048576 bytes)
287 """
285 """
288
286
@@ -307,7 +305,7 b' def size(mctx, x):'
307 elif expr[0].isdigit or expr[0] == '.':
305 elif expr[0].isdigit or expr[0] == '.':
308 a = _sizetoint(expr)
306 a = _sizetoint(expr)
309 b = _sizetomax(expr)
307 b = _sizetomax(expr)
310 m = lambda x: x >=a and x <= b
308 m = lambda x: x >= a and x <= b
311 else:
309 else:
312 raise error.ParseError(_("couldn't parse size"), expr)
310 raise error.ParseError(_("couldn't parse size"), expr)
313
311
@@ -913,6 +913,11 b' using lsprof.'
913 file exists, it is replaced. Default: None, data is printed on
913 file exists, it is replaced. Default: None, data is printed on
914 stderr
914 stderr
915
915
916 ``revsetalias``
917 """""""""""""""
918
919 Alias definitions for revsets. See :hg:`help revsets` for details.
920
916 ``server``
921 ``server``
917 """"""""""
922 """"""""""
918
923
@@ -42,7 +42,7 b' These are the supported infix operators:'
42
42
43 ``x - y``
43 ``x - y``
44 Changesets in x but not in y.
44 Changesets in x but not in y.
45
45
46 ``x^n``
46 ``x^n``
47 The nth parent of x, n == 0, 1, or 2.
47 The nth parent of x, n == 0, 1, or 2.
48 For n == 0, x; for n == 1, the first parent of each changeset in x;
48 For n == 0, x; for n == 1, the first parent of each changeset in x;
@@ -66,8 +66,9 b' existing predicates or other aliases. An'
66
66
67 <alias> = <definition>
67 <alias> = <definition>
68
68
69 in the ``revsetalias`` section of ``.hgrc``. Arguments of the form `$1`, `$2`,
69 in the ``revsetalias`` section of a Mercurial configuration file. Arguments
70 etc. are substituted from the alias into the definition.
70 of the form `$1`, `$2`, etc. are substituted from the alias into the
71 definition.
71
72
72 For example,
73 For example,
73
74
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now