WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
32971
check-webkit-style: Move and rename style-related files into webkitpy/style folder
https://bugs.webkit.org/show_bug.cgi?id=32971
Summary
check-webkit-style: Move and rename style-related files into webkitpy/style f...
Chris Jerdonek
Reported
2009-12-27 15:56:07 PST
This task includes the following moves/renames: style.py -> style/checker.py style_unittest.py -> style/checker_unittest.py cpp_style.py -> style/cpp.py cpp_style_unittest.py -> style/cpp_unittest.py text_tyle.py -> style/text.py text_style_unittest.py -> style/text_unittest.py Also add an empty __init__.py file.
Attachments
Proposed patch
(671.48 KB, patch)
2010-01-06 08:48 PST
,
Chris Jerdonek
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Jerdonek
Comment 1
2009-12-28 17:50:10 PST
Removed brackets from bug title.
Chris Jerdonek
Comment 2
2010-01-05 18:26:39 PST
Towards creating a style package. We can do this after--
https://bugs.webkit.org/show_bug.cgi?id=32966
Chris Jerdonek
Comment 3
2010-01-06 08:48:43 PST
Created
attachment 45963
[details]
Proposed patch To reference webkitpy modules outside of webkitpy/style, I settled on the central approach of adding the parent webkitpy directory to the style package's search path in style/__init__.py. This is instead of using absolute or relative import statements throughout the style package. This comes up, for example, when style/checker.py needs to import diff_parser.DiffParser. This will minimize us needing to go in an update files in the style package as the folder hierarchy for non-style files changes. Let me know if you have other thoughts.
WebKit Review Bot
Comment 4
2010-01-06 08:49:43 PST
style-queue ran check-webkit-style on
attachment 45963
[details]
without any errors.
Chris Jerdonek
Comment 5
2010-01-06 08:57:22 PST
(In reply to
comment #0
)
> This task includes the following moves/renames: > > style.py -> style/checker.py > style_unittest.py -> style/checker_unittest.py > cpp_style.py -> style/cpp.py > cpp_style_unittest.py -> style/cpp_unittest.py > text_tyle.py -> style/text.py > text_style_unittest.py -> style/text_unittest.py
I ended up doing something a bit simpler than this and left cpp_style* and text_style* alone. I only renamed--
> style.py -> style/checker.py > style_unittest.py -> style/checker_unittest.py
Eric Seidel (no email)
Comment 6
2010-01-06 08:57:33 PST
Comment on
attachment 45963
[details]
Proposed patch Looks sane enough. We can change the __path__ hack to something else if a python guru has a better solution.
WebKit Commit Bot
Comment 7
2010-01-07 00:37:16 PST
Comment on
attachment 45963
[details]
Proposed patch Clearing flags on attachment: 45963 Committed
r52906
: <
http://trac.webkit.org/changeset/52906
>
WebKit Commit Bot
Comment 8
2010-01-07 00:37:23 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