##// END OF EJS Templates
filesets: ignore unit case in size() predicate for single value...
av6 -
r25925:23c4589f stable
parent child Browse files
Show More
@@ -287,7 +287,7 def grep(mctx, x):
287
287
288 def _sizetomax(s):
288 def _sizetomax(s):
289 try:
289 try:
290 s = s.strip()
290 s = s.strip().lower()
291 for k, v in util._sizeunits:
291 for k, v in util._sizeunits:
292 if s.endswith(k):
292 if s.endswith(k):
293 # max(4k) = 5k - 1, max(4.5k) = 4.6k - 1
293 # max(4k) = 5k - 1, max(4.5k) = 4.6k - 1
@@ -144,6 +144,8 Test files properties
144 2k
144 2k
145 $ fileset '(1k or 2k) and size(".5KB - 1.5kB")'
145 $ fileset '(1k or 2k) and size(".5KB - 1.5kB")'
146 1k
146 1k
147 $ fileset 'size("1M")'
148 $ fileset 'size("1 GB")'
147
149
148 Test merge states
150 Test merge states
149
151
General Comments 0
You need to be logged in to leave comments. Login now