Changed `be list --uuids` to `be list --ids`
authorW. Trevor King <wking@drexel.edu>
Sun, 3 Jan 2010 16:33:56 +0000 (11:33 -0500)
committerW. Trevor King <wking@drexel.edu>
Sun, 3 Jan 2010 16:33:56 +0000 (11:33 -0500)
NEWS
libbe/command/list.py

diff --git a/NEWS b/NEWS
index 2d4e99b507fe2ec5325797d5bb0517c9f3b06caa..99d5bca27cd80e9246c99c42a0a30221abd5af00 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+January 3, 2010
+ * Changed `be list --uuids` -> `be list --ids`
+   Instead of UUIDs, it now outputs user ids: BUGDIR/BUG
+
 January 1, 2010
  * Added HTTP storage backend and server
    Serve a local repo on http://localhost:8000
index 8b5cb4ee87fdc183cbffb9317389410044a4d817..8baeaa2f258a04c5521f1f11e63303f4b8a51796 100644 (file)
@@ -108,14 +108,14 @@ class List (libbe.command.Command):
                     arg=libbe.command.Argument(
                         name='sort', metavar='SORT', default=None,
                         completion_callback=libbe.command.util.Completer(AVAILABLE_CMPS))),
-                libbe.command.Option(name='uuids', short_name='u',
-                    help='Only print the bug UUIDS'),
+                libbe.command.Option(name='ids', short_name='i',
+                    help='Only print the bug IDS'),
                 libbe.command.Option(name='xml', short_name='x',
                     help='Dump output in XML format'),
                 ])
 #    parser.add_option("-S", "--sort", metavar="SORT-BY", dest="sort_by",
 #                      help="Adjust bug-sort criteria with comma-separated list SORT-BY.  e.g. \"--sort creator,time\".  Available criteria: %s" % ','.join(AVAILABLE_CMPS), default=None)
-#    # boolean options.  All but uuids and xml are special cases of long forms
+#    # boolean options.  All but ids and xml are special cases of long forms
 #             ("w", "wishlist", "List bugs with 'wishlist' severity"),
 #             ("i", "important", "List bugs with >= 'serious' severity"),
 #             ("A", "active", "List all active bugs"),
@@ -151,9 +151,9 @@ class List (libbe.command.Command):
         bugs = self._sort_bugs(bugs, cmp_list)
 
         # print list of bugs
-        if params['uuids'] == True:
+        if params['ids'] == True:
             for bug in bugs:
-                print >> self.stdout, bug.uuid
+                print >> self.stdout, bug.id.user()
         else:
             self._list_bugs(bugs, xml=params['xml'])
         bugdir.storage.writeable = writeable