Fixed `list --sort ...` bug.
authorW. Trevor King <wking@drexel.edu>
Thu, 28 Oct 2010 17:29:16 +0000 (13:29 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 28 Oct 2010 17:29:16 +0000 (13:29 -0400)
libbe/command/list.py

index 48606f6a75c3da81ab386ecc36917e2c467e6275..3eb19326910f53ea7fdbf162b04643ae036bd6f1 100644 (file)
@@ -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'