[webkit-reviews] review requested: [Bug 29764] mark-bug-fixed: add -o|--open switch : [Attachment 40169] Patch v1

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Sep 26 05:35:48 PDT 2009


David Kilzer (ddkilzer) <ddkilzer at webkit.org> has asked  for review:
Bug 29764: mark-bug-fixed: add -o|--open switch
https://bugs.webkit.org/show_bug.cgi?id=29764

Attachment 40169: Patch v1
https://bugs.webkit.org/attachment.cgi?id=40169&action=review

------- Additional Comments from David Kilzer (ddkilzer) <ddkilzer at webkit.org>
Reviewed by NOBODY (OOPS!).

The -o|--open switch uses the open(1) command on Mac OS X to
open the bug URL in the default web browser.  If there are
similar mechanisms on other platforms, they may be added later.

* Scripts/mark-bug-fixed:
(MarkBugFixed.__init__): Added -o|--open switch to list of parse
options.
(MarkBugFixed._determine_bug_id_and_svn_revision): Moved logging
code into main() and extracted prompting code into
_prompt_user_for_correctness().
(MarkBugFixed._open_bug_in_web_browser): Added.
(MarkBugFixed._prompt_user_for_correctness): Added.
(MarkBugFixed.main): Added logging code from
_determine_bug_id_and_svn_revision().  Added code to call
_open_bug_in_web_browser() if the switch is set.  Added code to
call _prompt_user_for_correctness() when needed.
* Scripts/modules/bugzilla.py:
(Bugzilla.short_bug_url_for_bug_id): Added.
---
 3 files changed, 51 insertions(+), 6 deletions(-)


More information about the webkit-reviews mailing list