Changeset 51015 in webkit


Ignore:
Timestamp:
Nov 16, 2009 12:38:57 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-11-16 Eric Seidel <eric@webkit.org>

Reviewed by Adam Barth.

Document check-style's use of force_clean.

  • Scripts/bugzilla-tool:
  • Scripts/modules/scm.py:
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r51014 r51015  
     12009-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
    1102009-11-16  Adam Barth  <abarth@webkit.org>
    211
  • trunk/WebKitTools/Scripts/bugzilla-tool

    r51014 r51015  
    153153            log(e.output)
    154154
    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)
    156158
    157159    def execute(self, options, args, tool):
     
    281283        scm.ensure_no_local_commits(options.force_clean)
    282284        if options.clean:
    283             scm.ensure_clean_working_directory(options.force_clean)
     285            scm.ensure_clean_working_directory(force_clean=options.force_clean)
    284286
    285287    @classmethod
  • trunk/WebKitTools/Scripts/modules/scm.py

    r51010 r51015  
    147147        return os.path.join(self.scripts_directory(), script_name)
    148148
    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():
    151151            print self.run_command(self.status_command(), error_handler=ignore_error)
    152152            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.