Changeset 51015 in webkit
- Timestamp:
- Nov 16, 2009 12:38:57 AM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r51014 r51015 1 2009-11-16 Eric Seidel <eric@webkit.org> 2 3 Reviewed by Adam Barth. 4 5 Document check-style's use of force_clean. 6 7 * Scripts/bugzilla-tool: 8 * Scripts/modules/scm.py: 9 1 10 2009-11-16 Adam Barth <abarth@webkit.org> 2 11 -
trunk/WebKitTools/Scripts/bugzilla-tool
r51014 r51015 153 153 log(e.output) 154 154 155 tool.scm().ensure_clean_working_directory(True) 155 # This is safe because in order to get here the working directory had to be 156 # clean at the beginning. Clean it out again before we exit. 157 tool.scm().ensure_clean_working_directory(force_clean=True) 156 158 157 159 def execute(self, options, args, tool): … … 281 283 scm.ensure_no_local_commits(options.force_clean) 282 284 if options.clean: 283 scm.ensure_clean_working_directory( options.force_clean)285 scm.ensure_clean_working_directory(force_clean=options.force_clean) 284 286 285 287 @classmethod -
trunk/WebKitTools/Scripts/modules/scm.py
r51010 r51015 147 147 return os.path.join(self.scripts_directory(), script_name) 148 148 149 def ensure_clean_working_directory(self, force ):150 if not force and not self.working_directory_is_clean():149 def ensure_clean_working_directory(self, force_clean): 150 if not force_clean and not self.working_directory_is_clean(): 151 151 print self.run_command(self.status_command(), error_handler=ignore_error) 152 152 raise ScriptError(message="Working directory has modifications, pass --force-clean or --no-clean to continue.")
Note: See TracChangeset
for help on using the changeset viewer.