Changeset 80211 in webkit


Ignore:
Timestamp:
Mar 3, 2011 12:02:02 AM (13 years ago)
Author:
ojan@chromium.org
Message:

2011-03-02 Ojan Vafai <ojan@chromium.org>

Reviewed by Adam Barth.

make webkit-patch upload work for security bugs
https://bugs.webkit.org/show_bug.cgi?id=55655

The problem is that we shell out to prepare-ChangeLog,
which does not authenticate with bugzilla. All it needs from
bugzilla is the bug title though. We just pass it through from
webkit-patch instead.

  • Scripts/prepare-ChangeLog:
  • Scripts/webkitpy/common/net/bugzilla/bug.py:
  • Scripts/webkitpy/tool/steps/preparechangelog.py:
Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r80197 r80211  
     12011-03-02  Ojan Vafai  <ojan@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        make webkit-patch upload work for security bugs
     6        https://bugs.webkit.org/show_bug.cgi?id=55655
     7
     8        The problem is that we shell out to prepare-ChangeLog,
     9        which does not authenticate with bugzilla. All it needs from
     10        bugzilla is the bug title though. We just pass it through from
     11        webkit-patch instead.
     12
     13        * Scripts/prepare-ChangeLog:
     14        * Scripts/webkitpy/common/net/bugzilla/bug.py:
     15        * Scripts/webkitpy/tool/steps/preparechangelog.py:
     16
    1172011-03-01  Ojan Vafai  <ojan@chromium.org>
    218
  • trunk/Tools/Scripts/prepare-ChangeLog

    r75313 r80211  
    100100my $changeLogTimeZone = "PST8PDT";
    101101
     102my $bugDescription;
    102103my $bugNumber;
    103104my $name;
     
    115116    GetOptions("diff|d!" => \$spewDiff,
    116117               "bug|b:i" => \$bugNumber,
     118               "description:s" => \$bugDescription,
    117119               "name:s" => \$name,
    118120               "email:s" => \$emailAddress,
     
    128130    print STDERR basename($0) . " [-b|--bug=<bugid>] [-d|--diff] [-h|--help] [-o|--open] [-g|--git-commit=<committish>] [--git-reviewer=<name>] [svndir1 [svndir2 ...]]\n";
    129131    print STDERR "  -b|--bug        Fill in the ChangeLog bug information from the given bug.\n";
     132    print STDERR "  --description   One-line description that matches the bug title.\n";
    130133    print STDERR "  -d|--diff       Spew diff to stdout when running\n";
    131134    print STDERR "  --merge-base    Populate the ChangeLogs with the diff to this branch\n";
     
    255258print STDERR "  Change author: $name <$emailAddress>.\n";
    256259
    257 my $bugDescription;
    258260my $bugURL;
    259261if ($bugNumber) {
    260262    $bugURL = "https://bugs.webkit.org/show_bug.cgi?id=$bugNumber";
     263}
     264
     265if ($bugNumber && !$bugDescription) {
    261266    my $bugXMLURL = "$bugURL&ctype=xml";
    262267    # Perl has no built in XML processing, so we'll fetch and parse with curl and grep
  • trunk/Tools/Scripts/webkitpy/common/net/bugzilla/bug.py

    r73991 r80211  
    4545
    4646    def title(self):
     47        # FIXME: Do we need to HTML unescape the title?
    4748        return self.bug_dictionary["title"]
    4849
  • trunk/Tools/Scripts/webkitpy/tool/steps/preparechangelog.py

    r75575 r80211  
    6565        if state.get("bug_id"):
    6666            args.append("--bug=%s" % state["bug_id"])
     67            args.append("--description=%s" % self._tool.bugs.fetch_bug(state["bug_id"]).title())
    6768        if self._options.email:
    6869            args.append("--email=%s" % self._options.email)
Note: See TracChangeset for help on using the changeset viewer.