RESOLVED FIXED 26692
prepare-ChangeLog should bail out when missing EMAIL_ADDRESS or REAL_NAME
https://bugs.webkit.org/show_bug.cgi?id=26692
Summary prepare-ChangeLog should bail out when missing EMAIL_ADDRESS or REAL_NAME
Eric Seidel (no email)
Reported 2009-06-24 14:08:32 PDT
prepare-ChangeLog should bail out when missing EMAIL_ADDRESS or REAL_NAME Right now it just dumps instructions into the template. This causes people to post bad ChangeLogs and waste reviewer time.
Attachments
First attempt (4.04 KB, patch)
2009-07-01 14:25 PDT, Eric Seidel (no email)
no flags
Now with more sanity checking (4.89 KB, patch)
2009-07-01 14:49 PDT, Eric Seidel (no email)
aroben: review+
Eric Seidel (no email)
Comment 1 2009-06-24 14:08:54 PDT
prepare-ChangeLog should take --name= and --email= arguments if it doesn't already.
Eric Seidel (no email)
Comment 2 2009-07-01 14:25:28 PDT
Created attachment 32141 [details] First attempt
Eric Seidel (no email)
Comment 3 2009-07-01 14:26:28 PDT
The windows code path might still need some tweaking from one of the windows folks. But this should at least get rid of one more source of needless reviewer timewaste (telling people to fix the names in their ChangeLogs). :)
Eric Seidel (no email)
Comment 4 2009-07-01 14:28:44 PDT
I'm not sure that adding --email= and --name= is actually worth it. I am happy to remove them if the reviewer agrees. It's very easy to do: REAL_NAME="Eric Seidel" prepare-ChangeLog or just as easy as: prepare-ChangeLog --name="Eric Seidel" I think we should be encouraging people to use the environment variables. I initially added --name and --email because I wanted to leave flexibility if I was making prepare-ChangeLog fail more strictly.
Eric Seidel (no email)
Comment 5 2009-07-01 14:49:33 PDT
Created attachment 32144 [details] Now with more sanity checking
Adam Roben (:aroben)
Comment 6 2009-07-01 15:33:16 PDT
Comment on attachment 32144 [details] Now with more sanity checking > @@ -94,6 +96,8 @@ sub normalizePath($); > # Project time zone for Cupertino, CA, US > my $changeLogTimeZone = "PST8PDT"; > > +my $name; > +my $email_address; > my $gitCommit = 0; > my $gitIndex = ""; You've been infected (cleansed?) by Python. Please use interCaps for variable names. r=me
Eric Seidel (no email)
Comment 7 2009-07-01 16:27:50 PDT
The script uses mixed variable naming styles. email_address is historical... but I've changed it to emailAddress now. Thanks for the review!
Eric Seidel (no email)
Comment 8 2009-07-01 16:31:41 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebKitTools/ChangeLog M WebKitTools/Scripts/prepare-ChangeLog Committed r45455 http://trac.webkit.org/changeset/45455
Note You need to log in before you can comment on or make changes to this bug.