Changeset 139700 in webkit


Ignore:
Timestamp:
Jan 14, 2013 6:08:38 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Adding an error string to AmbiguousCommitError.
https://bugs.webkit.org/show_bug.cgi?id=106846

Patch by Tim 'mithro' Ansell <mithro@mithis.com> on 2013-01-14
Reviewed by Adam Barth.

  • Scripts/webkitpy/common/checkout/scm/git.py:

(AmbiguousCommitError.init):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r139697 r139700  
     12013-01-14  Tim 'mithro' Ansell  <mithro@mithis.com>
     2
     3        Adding an error string to AmbiguousCommitError.
     4        https://bugs.webkit.org/show_bug.cgi?id=106846
     5
     6        Reviewed by Adam Barth.
     7
     8        * Scripts/webkitpy/common/checkout/scm/git.py:
     9        (AmbiguousCommitError.__init__):
     10
    1112013-01-14  Dirk Pranke  <dpranke@chromium.org>
    212
  • trunk/Tools/Scripts/webkitpy/common/checkout/scm/git.py

    r139399 r139700  
    5050class AmbiguousCommitError(Exception):
    5151    def __init__(self, num_local_commits, working_directory_is_clean):
     52        Exception.__init__(self, "Found %s local commits and the working directory is %s" % (
     53            num_local_commits, ["not clean", "clean"][working_directory_is_clean]))
    5254        self.num_local_commits = num_local_commits
    5355        self.working_directory_is_clean = working_directory_is_clean
Note: See TracChangeset for help on using the changeset viewer.