Changeset 91045 in webkit


Ignore:
Timestamp:
Jul 14, 2011 7:33:30 PM (13 years ago)
Author:
eric@webkit.org
Message:

Move webkitpy off of loose mocks
https://bugs.webkit.org/show_bug.cgi?id=64508

Unreviewed. Fixing a test which fails under test-webkitpy --all (but not in a normal run).

  • Scripts/webkitpy/common/checkout/scm/git.py:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r91042 r91045  
     12011-07-14  Eric Seidel  <eric@webkit.org>
     2
     3        Move webkitpy off of loose mocks
     4        https://bugs.webkit.org/show_bug.cgi?id=64508
     5
     6        Unreviewed.  Fixing a test which fails under test-webkitpy --all (but not in a normal run).
     7
     8        * Scripts/webkitpy/common/checkout/scm/git.py:
     9
    1102011-07-14  Adam Barth  <abarth@webkit.org>
    211
  • trunk/Tools/Scripts/webkitpy/common/checkout/scm/git.py

    r91001 r91045  
    101101    @classmethod
    102102    def find_checkout_root(cls, path):
     103        # FIXME: This should use a FileSystem object instead of os.path.
    103104        # "git rev-parse --show-cdup" would be another way to get to the root
    104105        (checkout_root, dot_git) = os.path.split(run_command(['git', 'rev-parse', '--git-dir'], cwd=(path or "./")))
     
    109110    @classmethod
    110111    def to_object_name(cls, filepath):
    111         root_end_with_slash = self._filesystem.join(cls.find_checkout_root(self._filesystem.dirname(filepath)), '')
     112        # FIXME: This should use a FileSystem object instead of os.path.
     113        root_end_with_slash = os.path.join(cls.find_checkout_root(os.path.dirname(filepath)), '')
    112114        return filepath.replace(root_end_with_slash, '')
    113115
Note: See TracChangeset for help on using the changeset viewer.