WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
111668
webkitpy: change git_commit_from_svn_revision() to work in a pure git checkout
https://bugs.webkit.org/show_bug.cgi?id=111668
Summary
webkitpy: change git_commit_from_svn_revision() to work in a pure git checkout
Dirk Pranke
Reported
2013-03-06 19:27:59 PST
right now we call git svn find-rev, which won't work.
Attachments
Proposed patch
(1.78 KB, patch)
2013-11-04 07:48 PST
,
Peter Molnar
no flags
Details
Formatted Diff
Diff
Patch updated
(1.78 KB, patch)
2013-11-04 12:48 PST
,
Peter Molnar
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Dirk Pranke
Comment 1
2013-03-07 14:29:35 PST
See the motivating
bug 110839
for this ... we should just change it to call _most_recent_log_matching .
Ryosuke Niwa
Comment 2
2013-04-08 21:35:32 PDT
Why is this won't fix? I don't think so.
Tim 'mithro' Ansell
Comment 3
2013-04-08 22:04:23 PDT
I closed it WONTFIX because I won't be fixing it as I've been asked to concentrated on Blink.
Ryosuke Niwa
Comment 4
2013-04-08 22:05:48 PDT
(In reply to
comment #3
)
> I closed it WONTFIX because I won't be fixing it as I've been asked to concentrated on Blink.
That's not a good reason to close this bug as WONTFIX since this bug is not specific to Chromium at all.
Dirk Pranke
Comment 5
2013-04-08 22:38:34 PDT
(In reply to
comment #3
)
> I closed it WONTFIX because I won't be fixing it as I've been asked to concentrated on Blink.
In this case you should just un-assign yourself from the bug (use the Reset Assignee to default checkbox), rather than closing the bugs as WontFix.
Peter Molnar
Comment 6
2013-11-04 07:48:03 PST
Created
attachment 215920
[details]
Proposed patch
Ryosuke Niwa
Comment 7
2013-11-04 10:26:29 PST
Comment on
attachment 215920
[details]
Proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=215920&action=review
Did you run test-webkitpy webkitpy.common.checkout.scm.scm_unittest?
> Tools/Scripts/webkitpy/common/checkout/scm/git.py:313 > + git_log = self._run_git(['log', '-1', '--grep=' + '^\s*git-svn-id:.*@%s ' % svn_revision])
What's the point of +?
Peter Molnar
Comment 8
2013-11-04 12:25:04 PST
(In reply to
comment #7
)
> (From update of
attachment 215920
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=215920&action=review
> > Did you run test-webkitpy webkitpy.common.checkout.scm.scm_unittest?
Yes, in fact I ran "test-webkitpy --all" that covers all SCM tests as far as I know. All webkitpy tests were passing.
> > > Tools/Scripts/webkitpy/common/checkout/scm/git.py:313 > > + git_log = self._run_git(['log', '-1', '--grep=' + '^\s*git-svn-id:.*@%s ' % svn_revision]) > > What's the point of +?
As mentioned earlier in that file: # We use '--grep=' + foo rather than '--grep', foo because # git 1.7.0.4 (and earlier) didn't support the separate arg.
Ryosuke Niwa
Comment 9
2013-11-04 12:28:39 PST
Comment on
attachment 215920
[details]
Proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=215920&action=review
>>> Tools/Scripts/webkitpy/common/checkout/scm/git.py:313 >>> + git_log = self._run_git(['log', '-1', '--grep=' + '^\s*git-svn-id:.*@%s ' % svn_revision]) >> >> What's the point of +? > > As mentioned earlier in that file: > # We use '--grep=' + foo rather than '--grep', foo because > # git 1.7.0.4 (and earlier) didn't support the separate arg.
I get that but why don't you just do '--grep=^\s*git-svn-id:.*@%s ' instead? It seems like ' + ' is a useless noise.
Peter Molnar
Comment 10
2013-11-04 12:48:32 PST
Created
attachment 215947
[details]
Patch updated I just thought it was easier to read that way. New patch attached.
WebKit Commit Bot
Comment 11
2013-11-07 01:19:13 PST
Comment on
attachment 215947
[details]
Patch updated Clearing flags on attachment: 215947 Committed
r158828
: <
http://trac.webkit.org/changeset/158828
>
WebKit Commit Bot
Comment 12
2013-11-07 01:19:16 PST
All reviewed patches have been landed. Closing bug.
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