Changeset 53715 in webkit
- Timestamp:
- Jan 22, 2010 2:04:51 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r53714 r53715 1 2010-01-22 Chris Jerdonek <cjerdonek@webkit.org> 2 3 Reviewed by Adam Barth. 4 5 Made check-webkit-style able to check patches when script not 6 run from source root. Also consolidated external references 7 to a single file. 8 9 https://bugs.webkit.org/show_bug.cgi?id=33791 10 11 * Scripts/check-webkit-style: 12 - Changed to import style_references.py. 13 14 * Scripts/webkitpy/style/__init__.py: 15 - Removed __path__ hack that allowed searching Scripts/ directory. 16 17 * Scripts/webkitpy/style/checker.py: 18 - Changed to import style_references.py. 19 20 * Scripts/webkitpy/style_references.py: Added. 21 1 22 2010-01-22 Dmitry Titov <dimich@chromium.org> 2 23 -
trunk/WebKitTools/Scripts/check-webkit-style
r53675 r53715 49 49 50 50 import webkitpy.style.checker as checker 51 from webkitpy.scm import detect_scm_system 52 51 from webkitpy.style_references import SimpleScm 53 52 54 53 def main(): … … 72 71 73 72 else: 74 cwd = os.path.abspath('.') 75 scm = detect_scm_system(cwd) 73 scm = SimpleScm() 74 75 os.chdir(scm.checkout_root()) 76 76 77 77 if options.git_commit: -
trunk/WebKitTools/Scripts/webkitpy/style/__init__.py
r52906 r53715 1 1 # Required for Python to search this directory for module files 2 3 import os4 5 # Add containing "webkitpy" package directory to search path.6 __path__.append(os.path.join(__path__[0], "..")) -
trunk/WebKitTools/Scripts/webkitpy/style/checker.py
r53675 r53715 35 35 import sys 36 36 37 from diff_parser import DiffParser37 from .. style_references import parse_patch 38 38 from cpp_style import CppProcessor 39 39 from text_style import TextProcessor … … 890 890 891 891 """ 892 patch = DiffParser(patch_string.splitlines())893 for file_path, diff in patch .files.iteritems():892 patch_files = parse_patch(patch_string) 893 for file_path, diff in patch_files.iteritems(): 894 894 line_numbers = set() 895 895
Note: See TracChangeset
for help on using the changeset viewer.