WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
130745
webkit-patch upload should complain if bug parameter doesn't match bug in Changelog
https://bugs.webkit.org/show_bug.cgi?id=130745
Summary
webkit-patch upload should complain if bug parameter doesn't match bug in Cha...
Blaze Burg
Reported
2014-03-25 15:17:19 PDT
Several times now I've accidentally bumped other people's patches because webkit-patch upload doesn't check that -b <bugid> is the same as
https://bugs.webkit.org/show_bug.cgi?id
=<bugid> within the changelog header. This should be trivial to check, I think.
Attachments
Add attachment
proposed patch, testcase, etc.
Csaba Osztrogonác
Comment 1
2014-03-26 03:55:32 PDT
Just out of curiosity, why did you pass -b parameter to webkit-patch? It parses the bug id from changelog and upload the patch to the proper bug.
László Langó
Comment 2
2014-03-26 05:16:58 PDT
We should not allow -b <bugid> option in upload commands. It is unnecessary as Ossy mentioned and leads to issues.
Blaze Burg
Comment 3
2014-03-26 09:42:14 PDT
(In reply to
comment #1
)
> Just out of curiosity, why did you pass -b parameter to webkit-patch? > It parses the bug id from changelog and upload the patch to the proper bug.
Err, not -b, but just putting the bug number on the command line. It's not obvious that the default behavior will parse the change log: "upload uploads the current diff to bugs.webkit.org. If no bug id is provided, upload will create a bug. If the current diff does not have a ChangeLog, upload will prepare a ChangeLog." That first line from the help message makes it sound like it will unconditionally open a new bug. Does it?
László Langó
Comment 4
2014-03-28 07:49:54 PDT
(In reply to
comment #3
)
> (In reply to
comment #1
) > > Just out of curiosity, why did you pass -b parameter to webkit-patch? > > It parses the bug id from changelog and upload the patch to the proper bug. > > Err, not -b, but just putting the bug number on the command line. > It's not obvious that the default behavior will parse the change log: > > "upload uploads the current diff to bugs.webkit.org. > If no bug id is provided, upload will create a bug. > If the current diff does not have a ChangeLog, upload > will prepare a ChangeLog." > > That first line from the help message makes it sound like it will unconditionally open a new bug. Does it?
It does, if no bugurl in the ChangeLog and neither "-b <bugid>". In this case asks for a bugtitle and a comment for the new bug. I agree that the help message is not obvious. We should avoid the wrong usage somehow. I think we shouldn't allow to use the bugurl in the ChangeLog and the -b "<bugid>" option at the same time. Or simply remove the "-b <bugid>" option from the upload command.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug