X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/e7800bdc7bc1e9e5a040c6e1d583a95566eb4f38..cbd2f5f3521bdac24e1dc43d85a4dcdccd55d4c6:/stgit/commands/status.py diff --git a/stgit/commands/status.py b/stgit/commands/status.py index bbfb5df..b2835ab 100644 --- a/stgit/commands/status.py +++ b/stgit/commands/status.py @@ -91,12 +91,15 @@ def status(files = None, modified = False, new = False, deleted = False, filestat.append('?') cache_files = [x for x in cache_files if x[0] in filestat] - for fs in cache_files: - assert files == None or fs[1] in files - if not filtered: - out.stdout('%s %s' % (fs[0], fs[1])) + output = [] + for st, fn in cache_files: + assert files == None or fn in files + if filtered: + output.append(fn) else: - out.stdout('%s' % fs[1]) + output.append('%s %s' % (st, fn)) + for o in sorted(output): + out.stdout(o) def func(parser, options, args): """Show the tree status