##// END OF EJS Templates
fileset: sort debugfileset output...
Yuya Nishihara -
r38618:f9805627 @73 default
parent child Browse files
Show More
@@ -884,7 +884,7 b' def debugfileset(ui, repo, expr, **opts)'
884 tree = fileset.parse(expr)
884 tree = fileset.parse(expr)
885 ui.note(fileset.prettyformat(tree), "\n")
885 ui.note(fileset.prettyformat(tree), "\n")
886
886
887 for f in ctx.getfileset(expr):
887 for f in sorted(ctx.getfileset(expr)):
888 ui.write("%s\n" % f)
888 ui.write("%s\n" % f)
889
889
890 @command('debugformat',
890 @command('debugformat',
@@ -169,8 +169,8 b' Test files status in different revisions'
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 a2
172 b2
173 b2
173 a2
174 $ fileset -r0 'added() or revs("wdir()", added())'
174 $ fileset -r0 'added() or revs("wdir()", added())'
175 a1
175 a1
176 a2
176 a2
@@ -192,9 +192,9 b' Test files properties'
192 bin
192 bin
193
193
194 $ fileset 'grep("b{1}")'
194 $ fileset 'grep("b{1}")'
195 b1
195 b2
196 b2
196 c1
197 c1
197 b1
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]
@@ -403,21 +403,18 b' Test with a revision'
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 dos
419 mac
420 mixed
421 .hgsub
418 .hgsub
422 .hgsubstate
419 .hgsubstate
423 1k
420 1k
@@ -427,6 +424,9 b" Test safety of 'encoding' on removed fil"
427 b2link (symlink !)
424 b2link (symlink !)
428 bin
425 bin
429 c1
426 c1
427 dos
428 mac
429 mixed
430
430
431 Test detection of unintentional 'matchctx.existing()' invocation
431 Test detection of unintentional 'matchctx.existing()' invocation
432
432
@@ -561,12 +561,12 b' Call with revset matching multiple revs'
561 ---------------------------------------
561 ---------------------------------------
562
562
563 $ fileset "revs('0+4', added())"
563 $ fileset "revs('0+4', added())"
564 .hgsub
565 .hgsubstate
564 a1
566 a1
565 a2
567 a2
566 b1
568 b1
567 b2
569 b2
568 .hgsub
569 .hgsubstate
570
570
571 overlapping set
571 overlapping set
572
572
General Comments 0
You need to be logged in to leave comments. Login now