From b08c53301aa3d998ffe099a34b8b42414e741d75 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 23 Nov 2008 07:40:11 -0500 Subject: [PATCH] `be show` now supports showing multiple bugs with a single call. --- .../25c67b0b-1afd-4613-a787-e0f018614966/body | 1 + .../values | 21 +++++++++++++++++++ becommands/show.py | 10 ++++----- 3 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 .be/bugs/c894f10f-197d-4b22-9c5b-19f394df40d4/comments/25c67b0b-1afd-4613-a787-e0f018614966/body create mode 100644 .be/bugs/c894f10f-197d-4b22-9c5b-19f394df40d4/comments/25c67b0b-1afd-4613-a787-e0f018614966/values diff --git a/.be/bugs/c894f10f-197d-4b22-9c5b-19f394df40d4/comments/25c67b0b-1afd-4613-a787-e0f018614966/body b/.be/bugs/c894f10f-197d-4b22-9c5b-19f394df40d4/comments/25c67b0b-1afd-4613-a787-e0f018614966/body new file mode 100644 index 0000000..62c14e6 --- /dev/null +++ b/.be/bugs/c894f10f-197d-4b22-9c5b-19f394df40d4/comments/25c67b0b-1afd-4613-a787-e0f018614966/body @@ -0,0 +1 @@ +This bug duplicates a403de79-8f39-41f2-b9ec-15053b175ee2 diff --git a/.be/bugs/c894f10f-197d-4b22-9c5b-19f394df40d4/comments/25c67b0b-1afd-4613-a787-e0f018614966/values b/.be/bugs/c894f10f-197d-4b22-9c5b-19f394df40d4/comments/25c67b0b-1afd-4613-a787-e0f018614966/values new file mode 100644 index 0000000..5953360 --- /dev/null +++ b/.be/bugs/c894f10f-197d-4b22-9c5b-19f394df40d4/comments/25c67b0b-1afd-4613-a787-e0f018614966/values @@ -0,0 +1,21 @@ + + + +Content-type=text/plain + + + + + + +Date=Sun, 23 Nov 2008 12:37:57 +0000 + + + + + + +From=W. Trevor King + + + diff --git a/becommands/show.py b/becommands/show.py index ab296e3..a2cd322 100644 --- a/becommands/show.py +++ b/becommands/show.py @@ -38,15 +38,13 @@ def execute(args): options, args = get_parser().parse_args(args) if len(args) == 0: raise cmdutil.UserError("Please specify a bug id.") - if len(args) > 1: - help() - raise cmdutil.UserError("Too many arguments.") bd = bugdir.BugDir(loadNow=True) - bug = bd.bug_from_shortname(args[0]) - print bug.string(show_comments=True) + for bugid in args: + bug = bd.bug_from_shortname(bugid) + print bug.string(show_comments=True) def get_parser(): - parser = cmdutil.CmdOptionParser("be show bug-id") + parser = cmdutil.CmdOptionParser("be show bug-id [more bug-ids...]") return parser longhelp=""" -- 2.26.2