comparison mercurial/debugcommands.py @ 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 a0c3d83d5f04
children 3d8ef60569d8
comparison
equal deleted inserted replaced
38598:d046bf37f1ba 38599:f9805627af1f
882 ctx = scmutil.revsingle(repo, opts.get(r'rev'), None) 882 ctx = scmutil.revsingle(repo, opts.get(r'rev'), None)
883 if ui.verbose: 883 if ui.verbose:
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',
891 [] + cmdutil.formatteropts, 891 [] + cmdutil.formatteropts,
892 _('')) 892 _(''))