WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
38998
REGRESSION: svn-apply failed to set reviewer correctly for
attachment 55695
[details]
https://bugs.webkit.org/show_bug.cgi?id=38998
Summary
REGRESSION: svn-apply failed to set reviewer correctly for attachment 55695
Eric Seidel (no email)
Reported
2010-05-12 09:15:39 PDT
svn-apply failed to set reviewer correctly for
attachment 55695
[details]
https://bugs.webkit.org/show_bug.cgi?id=26224#c45
I'm not sure if this is a regression from recent svn-apply changes or what?
Attachments
Proposed patch
(10.55 KB, patch)
2010-05-12 20:16 PDT
,
Chris Jerdonek
cjerdonek
: commit-queue-
Details
Formatted Diff
Diff
Proposed patch 2
(11.49 KB, patch)
2010-05-12 21:36 PDT
,
Chris Jerdonek
dbates
: review+
cjerdonek
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Chris Jerdonek
Comment 1
2010-05-12 09:49:09 PDT
It is a regression. It is caused by the fact that the first diff (included below) is a ChangeLog and has leading junk containing the line "Reviewed by NOBODY (OOPS!)." The setChangeLogDateAndReviewer() subroutine of svn-apply substitutes the reviewer only for the first occurrence. We should probably make it so that the leading junk is not included in the patch contents sent to setChangeLogDateAndReviewer(). A quicker fix might be to have setChangeLogDateAndReviewer() replace all the occurrences and not just the first. -------------- From 25cc5eb85f766cafaa6ba715aa6cc62825ccdcc9 Mon Sep 17 00:00:00 2001 From: Rodrigo Belem <
rodrigo.belem@openbossa.org
> Date: Tue, 11 May 2010 09:13:02 -0400 Subject: [PATCH] [Qt, Gtk] Allows build-webkit script to receive an install prefix as parameter
https://bugs.webkit.org/show_bug.cgi?id=26224
Reviewed by NOBODY (OOPS!). WebCore: This patch adds the ability, in the QtWebkit build system, to change the installation path. * WebCore.pro: WebKitTools: Added more parameters to build-webkit script, the --prefix for gkt and --install-libs, --install-headers for qt. Now it is possible to change the install prefix for gtk and install path for qt. * Scripts/build-webkit: * Scripts/webkitdirs.pm: --- WebCore/ChangeLog | 12 ++++++++++++ WebCore/WebCore.pro | 13 ++++++++++--- WebKitTools/ChangeLog | 14 ++++++++++++++ WebKitTools/Scripts/build-webkit | 15 ++++++++++++++- WebKitTools/Scripts/webkitdirs.pm | 19 +++++++++++++++---- 5 files changed, 65 insertions(+), 8 deletions(-) Index: WebCore/ChangeLog index eab24cc..b92c799 100644 --- WebCore/ChangeLog +++ WebCore/ChangeLog @@ -1,3 +1,15 @@ +2010-05-10 Rodrigo Belem <
rodrigo.belem@openbossa.org
> + + Reviewed by NOBODY (OOPS!). + + [Qt, Gtk] Allows build-webkit script to receive an install prefix as parameter +
https://bugs.webkit.org/show_bug.cgi?id=26224
+ + This patch adds the ability, in the QtWebkit build system, to change + the installation path.
Chris Jerdonek
Comment 2
2010-05-12 09:52:28 PDT
Another possible quick fix would be to make the regular expression more specific. For example, it could look for something like-- "+ Reviewed by NOBODY (OOPS!)." (in particular, include the leading + in the reg ex).
Chris Jerdonek
Comment 3
2010-05-12 09:54:31 PDT
We should probably also move setChangeLogDateAndReviewer() from svn-apply to VCSUtils.pm and create unit tests for it.
Eric Seidel (no email)
Comment 4
2010-05-12 09:55:38 PDT
Either way. :) So long as we fix it and test it. I think the likelihood of multiple NOBODY (OOPS!) ever being an issue is low, so either solution sounds fine.
Eric Seidel (no email)
Comment 5
2010-05-12 20:09:46 PDT
Bit us again:
https://bugs.webkit.org/show_bug.cgi?id=38655#c7
Chris Jerdonek
Comment 6
2010-05-12 20:16:04 PDT
Created
attachment 55931
[details]
Proposed patch
Eric Seidel (no email)
Comment 7
2010-05-12 20:21:04 PDT
Comment on
attachment 55931
[details]
Proposed patch WebKitTools/Scripts/VCSUtils.pm:946 + my $savedTimeZone = $ENV{'TZ'}; I would have put the localTimeInProjectTimeZone code in its own function (for possible future unit testing) instead of lumping it in here. WebKitTools/Scripts/VCSUtils.pm:955 + $patch =~ s/(\n\+)\d{4}-[^-]{2}-[^-]{2}( )/$1$newDate$2/; Naming this regexp might help us understand what its' used for. :) I don't see any of the unit tests testing the case of Reviewed By in the leading junk, or?
Chris Jerdonek
Comment 8
2010-05-12 20:26:01 PDT
(In reply to
comment #7
)
> I don't see any of the unit tests testing the case of Reviewed By in the leading junk, or?
Both unit tests test this case (one with the reviewer set and the other without setting the reviewer).
Chris Jerdonek
Comment 9
2010-05-12 20:29:12 PDT
(In reply to
comment #8
)
> (In reply to
comment #7
) > > I don't see any of the unit tests testing the case of Reviewed By in the leading junk, or? > > Both unit tests test this case (one with the reviewer set and the other without setting the reviewer).
The name of the first test is, for example-- testName => "\"Reviewed by\" in leading junk with reviewer defined", (I should really name it "NOBODY (OOPS!)" in the leading junk though since that is what causes the issue -- not the Reviewed By.)
Chris Jerdonek
Comment 10
2010-05-12 20:53:24 PDT
Comment on
attachment 55931
[details]
Proposed patch Obsoleting to incorporate Eric's comments.
Chris Jerdonek
Comment 11
2010-05-12 21:36:12 PDT
Created
attachment 55938
[details]
Proposed patch 2
Daniel Bates
Comment 12
2010-05-12 22:07:32 PDT
Comment on
attachment 55938
[details]
Proposed patch 2 Looks good to me. r=me.
Chris Jerdonek
Comment 13
2010-05-12 22:23:46 PDT
The pre-commit hook is not letting me commit this patch. It looks like the pre-commit hook itself has a similar problem as what this patch was meant to address. Transmitting file data ....svn: Commit failed (details follow): svn: Commit blocked by pre-commit hook (exit code 1) with output: svnlook: Can't write to stream: Broken pipe The following ChangeLog files contain OOPS: trunk/WebKitTools/ChangeLog Please don't ever say "OOPS" in a ChangeLog file.
Chris Jerdonek
Comment 14
2010-05-12 22:28:12 PDT
(In reply to
comment #13
)
> The pre-commit hook is not letting me commit this patch. It looks like the pre-commit hook itself has a similar problem as what this patch was meant to address.
I'll just misspell OOPS to let it go through.
Daniel Bates
Comment 15
2010-05-12 22:34:16 PDT
(In reply to
comment #13
)
> The pre-commit hook is not letting me commit this patch. It looks like the pre-commit hook itself has a similar problem as what this patch was meant to address. > > > Transmitting file data ....svn: Commit failed (details follow): > svn: Commit blocked by pre-commit hook (exit code 1) with output: > svnlook: Can't write to stream: Broken pipe > > The following ChangeLog files contain OOPS: > > trunk/WebKitTools/ChangeLog > > Please don't ever say "OOPS" in a ChangeLog file.
CC'ing William Siegrist and Mark Rowe on this. It's probably a good thing that the pre-commit hook is overly sensitive when looking for "OOPS" in a change log file.
Chris Jerdonek
Comment 16
2010-05-12 22:41:21 PDT
Committed:
http://trac.webkit.org/changeset/59344
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