comparison tests/test-fileset.t @ 38599:f9805627af1f

fileset: sort debugfileset output Unlike revset, the order of fileset result doesn't matter since it's used as a matcher predicate. This stabilizes debugfileset output for upcoming changes.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 09 Jun 2018 18:26:04 +0900
parents 62376d7b8859
children 3d8ef60569d8
comparison
equal deleted inserted replaced
38598:d046bf37f1ba 38599:f9805627af1f
167 $ hg status -mru 167 $ hg status -mru
168 M b2 168 M b2
169 R a2 169 R a2
170 ? c3 170 ? c3
171 $ fileset -r0 'added() and revs("wdir()", modified() or removed() or unknown())' 171 $ fileset -r0 'added() and revs("wdir()", modified() or removed() or unknown())'
172 b2 172 a2
173 a2 173 b2
174 $ fileset -r0 'added() or revs("wdir()", added())' 174 $ fileset -r0 'added() or revs("wdir()", added())'
175 a1 175 a1
176 a2 176 a2
177 b1 177 b1
178 b2 178 b2
190 $ hg add bin 190 $ hg add bin
191 $ fileset 'binary()' 191 $ fileset 'binary()'
192 bin 192 bin
193 193
194 $ fileset 'grep("b{1}")' 194 $ fileset 'grep("b{1}")'
195 b2 195 b1
196 c1 196 b2
197 b1 197 c1
198 $ fileset 'grep("missingparens(")' 198 $ fileset 'grep("missingparens(")'
199 hg: parse error: invalid match pattern: (unbalanced parenthesis|missing \)).* (re) 199 hg: parse error: invalid match pattern: (unbalanced parenthesis|missing \)).* (re)
200 [255] 200 [255]
201 201
202 #if execbit 202 #if execbit
401 401
402 $ fileset 'eol(dos)' 402 $ fileset 'eol(dos)'
403 dos 403 dos
404 mixed 404 mixed
405 $ fileset 'eol(unix)' 405 $ fileset 'eol(unix)'
406 mixed
407 .hgsub 406 .hgsub
408 .hgsubstate 407 .hgsubstate
409 b1 408 b1
410 b2 409 b2
411 c1 410 c1
411 mixed
412 $ fileset 'eol(mac)' 412 $ fileset 'eol(mac)'
413 mac 413 mac
414 414
415 Test safety of 'encoding' on removed files 415 Test safety of 'encoding' on removed files
416 416
417 $ fileset 'encoding("ascii")' 417 $ fileset 'encoding("ascii")'
418 .hgsub
419 .hgsubstate
420 1k
421 2k
422 b1
423 b2
424 b2link (symlink !)
425 bin
426 c1
418 dos 427 dos
419 mac 428 mac
420 mixed 429 mixed
421 .hgsub
422 .hgsubstate
423 1k
424 2k
425 b1
426 b2
427 b2link (symlink !)
428 bin
429 c1
430 430
431 Test detection of unintentional 'matchctx.existing()' invocation 431 Test detection of unintentional 'matchctx.existing()' invocation
432 432
433 $ cat > $TESTTMP/existingcaller.py <<EOF 433 $ cat > $TESTTMP/existingcaller.py <<EOF
434 > from mercurial import registrar 434 > from mercurial import registrar
559 559
560 Call with revset matching multiple revs 560 Call with revset matching multiple revs
561 --------------------------------------- 561 ---------------------------------------
562 562
563 $ fileset "revs('0+4', added())" 563 $ fileset "revs('0+4', added())"
564 a1
565 a2
566 b1
567 b2
568 .hgsub 564 .hgsub
569 .hgsubstate 565 .hgsubstate
566 a1
567 a2
568 b1
569 b2
570 570
571 overlapping set 571 overlapping set
572 572
573 $ fileset "revs('1+2', modified())" 573 $ fileset "revs('1+2', modified())"
574 b2 574 b2