Changeset 56032 in webkit
- Timestamp:
- Mar 15, 2010 9:15:20 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r56026 r56032 1 2010-03-15 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 webkit-patch rollout should error out on conflicts 6 https://bugs.webkit.org/show_bug.cgi?id=36151 7 8 Instead of blindingly plowing ahead, we now throw an exception if there 9 are conflicts after applying a reverse diff. 10 11 * Scripts/webkitpy/scm.py: 12 1 13 2010-03-15 Chris Fleizach <cfleizach@apple.com> 2 14 -
trunk/WebKitTools/Scripts/webkitpy/scm.py
r55204 r56032 211 211 raise NotImplementedError, "subclasses must implement" 212 212 213 def conflicted_files(self): 214 raise NotImplementedError, "subclasses must implement" 215 213 216 def display_name(self): 214 217 raise NotImplementedError, "subclasses must implement" … … 335 338 return self.run_status_and_extract_filenames(self.status_command(), status_regexp) 336 339 340 def conflicted_files(self): 341 if self.svn_version() > "1.6": 342 status_regexp = "^(?P<status>[C]).{6} (?P<filename>.+)$" 343 else: 344 status_regexp = "^(?P<status>[C]).{5} (?P<filename>.+)$" 345 return self.run_status_and_extract_filenames(self.status_command(), status_regexp) 346 337 347 @staticmethod 338 348 def supports_local_commits(): … … 433 443 status_regexp = '^(?P<status>[ADM])\t(?P<filename>.+)$' 434 444 return self.run_status_and_extract_filenames(status_command, status_regexp) 435 445 446 def conflicted_files(self): 447 status_command = ['git', 'diff', '--name-status', '-C', '-M', '--diff-filter=U'] 448 status_regexp = '^(?P<status>[U])\t(?P<filename>.+)$' 449 return self.run_status_and_extract_filenames(status_command, status_regexp) 450 436 451 @staticmethod 437 452 def supports_local_commits(): … … 460 475 461 476 # I think this will always fail due to ChangeLogs. 462 # FIXME: We need to detec specific failure conditions and handle them.463 477 run_command(['git', 'revert', '--no-commit', git_commit], error_handler=Executive.ignore_error) 464 478 … … 467 481 if len(changelog_paths): 468 482 run_command([self.script_path('resolve-ChangeLogs')] + changelog_paths) 483 484 conflicts = self.conflicted_files() 485 if len(conflicts): 486 raise ScriptError(message="Failed to apply reverse diff for revision %s because of the following conflicts:\n%s" % (revision, "\n".join(conflicts))) 469 487 470 488 def revert_files(self, file_paths):
Note: See TracChangeset
for help on using the changeset viewer.