Changeset 92632 in webkit


Ignore:
Timestamp:
Aug 8, 2011 2:04:31 PM (13 years ago)
Author:
abarth@webkit.org
Message:

Fix SCM webkitpy unit test failures
https://bugs.webkit.org/show_bug.cgi?id=65823

Patch by Jochen Eisinger <jochen@chromium.org> on 2011-08-08
Reviewed by Eric Seidel.

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

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r92629 r92632  
     12011-08-08  Jochen Eisinger  <jochen@chromium.org>
     2
     3        Fix SCM webkitpy unit test failures
     4        https://bugs.webkit.org/show_bug.cgi?id=65823
     5
     6        Reviewed by Eric Seidel.
     7
     8        * Scripts/webkitpy/common/checkout/scm/git.py:
     9        * Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
     10
    1112011-08-08  Eric Seidel  <eric@webkit.org>
    212
  • trunk/Tools/Scripts/webkitpy/common/checkout/scm/git.py

    r92609 r92632  
    203203
    204204    def revisions_changing_file(self, path, limit=5):
     205        # raise a script error if path does not exists to match the behavior of  the svn implementation.
     206        if not self._filesystem.exists(path):
     207            raise ScriptError(message="Path %s does not exist." % path)
     208
    205209        # git rev-list head --remove-empty --limit=5 -- path would be equivalent.
    206210        commit_ids = self.run(["git", "log", "--remove-empty", "--pretty=format:%H", "-%s" % limit, "--", path]).splitlines()
  • trunk/Tools/Scripts/webkitpy/common/checkout/scm/scm_unittest.py

    r92609 r92632  
    559559@@ -1,5 +1,13 @@
    560560 2009-10-26  Eric Seidel  <eric@webkit.org>
    561 
     561%(whitespace)s
    562562+        Reviewed by NOBODY (OOPS!).
    563563+
     
    569569+
    570570         Reviewed by Foo Bar.
    571 
     571%(whitespace)s
    572572         Most awesome change ever.
    573 """
     573""" % {'whitespace': ' '}
    574574        one_line_overlap_entry = """DATE_HERE  Eric Seidel  <eric@webkit.org>
    575575
     
    585585+++ ChangeLog   (working copy)
    586586@@ -2,6 +2,14 @@
    587 
     587%(whitespace)s
    588588         Reviewed by Foo Bar.
    589 
     589%(whitespace)s
    590590+        Second most awesome change ever.
    591591+
     
    597597+
    598598         Most awesome change ever.
    599 
     599%(whitespace)s
    600600         * scm_unittest.py:
    601 """
     601""" % {'whitespace': ' '}
    602602        two_line_overlap_entry = """DATE_HERE  Eric Seidel  <eric@webkit.org>
    603603
     
    947947        write_into_file_at_path('test_file_commit1', 'contents')
    948948        run_command(['git', 'add', 'test_file_commit1'])
    949         scm = detect_scm_system(self.untracking_checkout_path)
     949        scm = self.tracking_scm
    950950        scm.commit_locally_with_message('message')
    951951
     
    15121512    def test_create_patch(self):
    15131513        scm = self.make_scm(logging_executive=True)
    1514         expected_stderr = "MOCK run_command: ['git', 'merge-base', u'refs/remotes/origin/master', 'HEAD'], cwd=/mock-checkoutMOCK run_command: ['git', 'diff', '--binary', '--no-ext-diff', '--full-index', '-M', 'MOCK output of child process', '--'], cwd=/mock-checkoutMOCK run_command: ['git', 'log', '-25'], cwd=/mock-checkout\n"
     1514        expected_stderr = "MOCK run_command: ['git', 'merge-base', u'refs/remotes/origin/master', 'HEAD'], cwd=%(checkout)s\nMOCK run_command: ['git', 'diff', '--binary', '--no-ext-diff', '--full-index', '-M', 'MOCK output of child process', '--'], cwd=%(checkout)s\nMOCK run_command: ['git', 'log', '-25'], cwd=None\n" % {'checkout': scm.checkout_root}
    15151515        OutputCapture().assert_outputs(self, scm.create_patch, expected_stderr=expected_stderr)
    15161516
Note: See TracChangeset for help on using the changeset viewer.