Bug 55749

Summary: add webkit-patch post-attachment for posting to bugzilla from the commandline
Product: WebKit Reporter: Ojan Vafai <ojan>
Component: New BugsAssignee: Ojan Vafai <ojan>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, eric, noel.gordon
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch
none
Patch abarth: review+, abarth: commit-queue-

Description Ojan Vafai 2011-03-03 23:51:15 PST
add webkit-patch post-attachment for posting to bugzilla from the commandline
Comment 1 Ojan Vafai 2011-03-03 23:51:57 PST
Created attachment 84701 [details]
Patch
Comment 2 Eric Seidel (no email) 2011-03-04 00:32:03 PST
Don't you want this as post-patch since it assumes it's a patch?  You could do a post-attachment and have it use the attachment paths instead of the patch ones.
Comment 3 Ojan Vafai 2011-03-04 01:01:19 PST
Created attachment 84706 [details]
Patch
Comment 4 Eric Seidel (no email) 2011-03-04 01:14:42 PST
Comment on attachment 84706 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=84706&action=review

> Tools/Scripts/webkitpy/tool/commands/upload.py:178
> +    help_text = "Attach the the file to the bug as a patch file"

This doens't just do patches, right?  This should handle other mime types just fine, or?
Comment 5 Ojan Vafai 2011-03-04 01:30:55 PST
(In reply to comment #2)
> Don't you want this as post-patch since it assumes it's a patch?  You could do a post-attachment and have it use the attachment paths instead of the patch ones.

I don't understand. Where is it assuming it's a patch? I specifically want post-attachment. We could add flags for marking for review/commit-queue to post-attachment as well if there's a use-case for posting patch files.


(In reply to comment #4)
> (From update of attachment 84706 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=84706&action=review
> 
> > Tools/Scripts/webkitpy/tool/commands/upload.py:178
> > +    help_text = "Attach the the file to the bug as a patch file"
> 
> This doens't just do patches, right?  This should handle other mime types just fine, or?

Whoops. That's just a copy-paste typo. Will change it to "Attach the the file to the bug"
Comment 6 Adam Barth 2011-03-04 11:26:17 PST
Comment on attachment 84706 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=84706&action=review

My only concern is this command getting confused with the "post" command.  Maybe "attach-to-bug" ?

webkit-patch attach-to-bug 23983 foo.patch

> Tools/Scripts/webkitpy/tool/commands/upload.py:179
> +    argument_names = "BUGID FILEPATH [\"DESCRIPTION\"]"

Normally, we used -m for the description, right?

> Tools/Scripts/webkitpy/tool/commands/upload.py:-207
> -

This removal seems spurious and incorrect.
Comment 7 Ojan Vafai 2011-03-07 21:58:51 PST
Committed r80537: <http://trac.webkit.org/changeset/80537>