From: W. Trevor King Date: Thu, 28 Oct 2010 17:29:16 +0000 (-0400) Subject: Fixed `list --sort ...` bug. X-Git-Tag: 1.0.0~3^2~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aa1230e03b3859bbcf22d710a2b25a68b691e740;p=be.git Fixed `list --sort ...` bug. --- 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'