Changeset 92632 in webkit
- Timestamp:
- Aug 8, 2011 2:04:31 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r92629 r92632 1 2011-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 1 11 2011-08-08 Eric Seidel <eric@webkit.org> 2 12 -
trunk/Tools/Scripts/webkitpy/common/checkout/scm/git.py
r92609 r92632 203 203 204 204 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 205 209 # git rev-list head --remove-empty --limit=5 -- path would be equivalent. 206 210 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 559 559 @@ -1,5 +1,13 @@ 560 560 2009-10-26 Eric Seidel <eric@webkit.org> 561 561 %(whitespace)s 562 562 + Reviewed by NOBODY (OOPS!). 563 563 + … … 569 569 + 570 570 Reviewed by Foo Bar. 571 571 %(whitespace)s 572 572 Most awesome change ever. 573 """ 573 """ % {'whitespace': ' '} 574 574 one_line_overlap_entry = """DATE_HERE Eric Seidel <eric@webkit.org> 575 575 … … 585 585 +++ ChangeLog (working copy) 586 586 @@ -2,6 +2,14 @@ 587 587 %(whitespace)s 588 588 Reviewed by Foo Bar. 589 589 %(whitespace)s 590 590 + Second most awesome change ever. 591 591 + … … 597 597 + 598 598 Most awesome change ever. 599 599 %(whitespace)s 600 600 * scm_unittest.py: 601 """ 601 """ % {'whitespace': ' '} 602 602 two_line_overlap_entry = """DATE_HERE Eric Seidel <eric@webkit.org> 603 603 … … 947 947 write_into_file_at_path('test_file_commit1', 'contents') 948 948 run_command(['git', 'add', 'test_file_commit1']) 949 scm = detect_scm_system(self.untracking_checkout_path)949 scm = self.tracking_scm 950 950 scm.commit_locally_with_message('message') 951 951 … … 1512 1512 def test_create_patch(self): 1513 1513 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} 1515 1515 OutputCapture().assert_outputs(self, scm.create_patch, expected_stderr=expected_stderr) 1516 1516
Note: See TracChangeset
for help on using the changeset viewer.