##// END OF EJS Templates
fileset: treat encoding and eol as the predicate calling _existing...
FUJIWARA Katsunori -
r27459:2f15253e default
parent child Browse files
Show More
@@ -510,6 +510,8 def _intree(funcs, tree):
510 # filesets using matchctx.existing()
510 # filesets using matchctx.existing()
511 _existingcallers = [
511 _existingcallers = [
512 'binary',
512 'binary',
513 'encoding',
514 'eol',
513 'exec',
515 'exec',
514 'grep',
516 'grep',
515 'size',
517 'size',
@@ -297,16 +297,34 Test with a revision
297 >>> open('mac', 'wb').write("mac\r")
297 >>> open('mac', 'wb').write("mac\r")
298 $ hg add dos mixed mac
298 $ hg add dos mixed mac
299
299
300 (remove a1, to examine safety of 'eol' on removed files)
301 $ rm a1
302
300 $ fileset 'eol(dos)'
303 $ fileset 'eol(dos)'
301 dos
304 dos
302 mixed
305 mixed
303 $ fileset 'eol(unix)'
306 $ fileset 'eol(unix)'
307 mixed
304 .hgsub
308 .hgsub
305 .hgsubstate
309 .hgsubstate
306 a1
307 b1
310 b1
308 b2
311 b2
309 c1
312 c1
310 mixed
311 $ fileset 'eol(mac)'
313 $ fileset 'eol(mac)'
312 mac
314 mac
315
316 Test safety of 'encoding' on removed files
317
318 $ fileset 'encoding("ascii")'
319 dos
320 mac
321 mixed
322 .hgsub
323 .hgsubstate
324 1k
325 2k
326 b1
327 b2
328 b2link
329 bin
330 c1
General Comments 0
You need to be logged in to leave comments. Login now