From aa1230e03b3859bbcf22d710a2b25a68b691e740 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 28 Oct 2010 13:29:16 -0400 Subject: [PATCH] Fixed `list --sort ...` bug. --- libbe/command/list.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libbe/command/list.py b/libbe/command/list.py index 48606f6..3eb1932 100644 --- a/libbe/command/list.py +++ b/libbe/command/list.py @@ -92,6 +92,8 @@ class List (libbe.command.Command): >>> ret = ui.run(cmd, {'status':'closed'}) abc/b:cm: Bug B >>> ret = ui.run(cmd, {'status':'all', 'sort':'time'}) + abc/a:om: Bug A + abc/b:cm: Bug B >>> bd.storage.writeable True >>> ui.cleanup() @@ -190,7 +192,7 @@ class List (libbe.command.Command): def _parse_params(self, bugdir, params): cmp_list = [] if params['sort'] != None: - for cmp in params['sort'].sort_by.split(','): + for cmp in params['sort'].split(','): if cmp not in AVAILABLE_CMPS: raise libbe.command.UserError( 'Invalid sort on "%s".\nValid sorts:\n %s' -- 2.26.2