Changeset 70169 in webkit
- Timestamp:
- Oct 20, 2010 1:36:23 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r70164 r70169 1 2010-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 1 12 2010-10-20 Robert Hogan <robert@webkit.org> 2 13 -
trunk/WebKitTools/Scripts/webkitpy/common/checkout/scm.py
r70059 r70169 695 695 files of multiple different encodings.""" 696 696 # 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) 698 698 699 699 @classmethod -
trunk/WebKitTools/Scripts/webkitpy/common/checkout/scm_unittest.py
r70020 r70169 1099 1099 self.assertTrue(re.search(r'test_file_commit1', patch)) 1100 1100 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 1101 1115 def test_create_patch_git_commit(self): 1102 1116 self._two_local_commits()
Note: See TracChangeset
for help on using the changeset viewer.