Changeset 53715 in webkit


Ignore:
Timestamp:
Jan 22, 2010 2:04:51 PM (14 years ago)
Author:
Chris Jerdonek
Message:

33791: Proposed patch 1 (amended with preferred license)

Location:
trunk/WebKitTools
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r53714 r53715  
     12010-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
    1222010-01-22  Dmitry Titov  <dimich@chromium.org>
    223
  • trunk/WebKitTools/Scripts/check-webkit-style

    r53675 r53715  
    4949
    5050import webkitpy.style.checker as checker
    51 from webkitpy.scm import detect_scm_system
    52 
     51from webkitpy.style_references import SimpleScm
    5352
    5453def main():
     
    7271
    7372    else:
    74         cwd = os.path.abspath('.')
    75         scm = detect_scm_system(cwd)
     73        scm = SimpleScm()
     74
     75        os.chdir(scm.checkout_root())
    7676
    7777        if options.git_commit:
  • trunk/WebKitTools/Scripts/webkitpy/style/__init__.py

    r52906 r53715  
    11# Required for Python to search this directory for module files
    2 
    3 import os
    4 
    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  
    3535import sys
    3636
    37 from diff_parser import DiffParser
     37from .. style_references import parse_patch
    3838from cpp_style import CppProcessor
    3939from text_style import TextProcessor
     
    890890
    891891        """
    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():
    894894            line_numbers = set()
    895895
Note: See TracChangeset for help on using the changeset viewer.