Changeset 70169 in webkit


Ignore:
Timestamp:
Oct 20, 2010 1:36:23 PM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-10-20 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

webkit-patch doesn't get along with git rm
https://bugs.webkit.org/show_bug.cgi?id=47940

Turns out we need to pass "--" to tell git this is a path.

  • Scripts/webkitpy/common/checkout/scm.py:
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r70164 r70169  
     12010-10-20  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        webkit-patch doesn't get along with git rm
     6        https://bugs.webkit.org/show_bug.cgi?id=47940
     7
     8        Turns out we need to pass "--" to tell git this is a path.
     9
     10        * Scripts/webkitpy/common/checkout/scm.py:
     11
    1122010-10-20  Robert Hogan  <robert@webkit.org>
    213
  • trunk/WebKitTools/Scripts/webkitpy/common/checkout/scm.py

    r70059 r70169  
    695695        files of multiple different encodings."""
    696696        # FIXME: This should probably use cwd=self.checkout_root
    697         return self.run(['git', 'diff', '--binary', "--no-ext-diff", "--full-index", "-M", self.merge_base(git_commit)] + changed_files, decode_output=False)
     697        return self.run(['git', 'diff', '--binary', "--no-ext-diff", "--full-index", "-M", self.merge_base(git_commit), "--"] + changed_files, decode_output=False)
    698698
    699699    @classmethod
  • trunk/WebKitTools/Scripts/webkitpy/common/checkout/scm_unittest.py

    r70020 r70169  
    10991099        self.assertTrue(re.search(r'test_file_commit1', patch))
    11001100
     1101    def test_create_patch_with_changed_files(self):
     1102        self._one_local_commit_plus_working_copy_changes()
     1103        scm = detect_scm_system(self.git_checkout_path)
     1104        patch = scm.create_patch(changed_files=['test_file_commit2'])
     1105        self.assertTrue(re.search(r'test_file_commit2', patch))
     1106
     1107    def test_create_patch_with_rm_and_changed_files(self):
     1108        self._one_local_commit_plus_working_copy_changes()
     1109        scm = detect_scm_system(self.git_checkout_path)
     1110        os.remove('test_file_commit1')
     1111        patch = scm.create_patch()
     1112        patch_with_changed_files = scm.create_patch(changed_files=['test_file_commit1', 'test_file_commit2'])
     1113        self.assertEquals(patch, patch_with_changed_files)
     1114
    11011115    def test_create_patch_git_commit(self):
    11021116        self._two_local_commits()
Note: See TracChangeset for help on using the changeset viewer.