Title: [139700] trunk/Tools
Revision
139700
Author
[email protected]
Date
2013-01-14 18:08:38 -0800 (Mon, 14 Jan 2013)

Log Message

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

Patch by Tim 'mithro' Ansell <[email protected]> on 2013-01-14
Reviewed by Adam Barth.

* Scripts/webkitpy/common/checkout/scm/git.py:
(AmbiguousCommitError.__init__):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (139699 => 139700)


--- trunk/Tools/ChangeLog	2013-01-15 02:06:20 UTC (rev 139699)
+++ trunk/Tools/ChangeLog	2013-01-15 02:08:38 UTC (rev 139700)
@@ -1,3 +1,13 @@
+2013-01-14  Tim 'mithro' Ansell  <[email protected]>
+
+        Adding an error string to AmbiguousCommitError.
+        https://bugs.webkit.org/show_bug.cgi?id=106846
+
+        Reviewed by Adam Barth.
+
+        * Scripts/webkitpy/common/checkout/scm/git.py:
+        (AmbiguousCommitError.__init__):
+
 2013-01-14  Dirk Pranke  <[email protected]>
 
         kill whole lighttpd process tree for chromium win

Modified: trunk/Tools/Scripts/webkitpy/common/checkout/scm/git.py (139699 => 139700)


--- trunk/Tools/Scripts/webkitpy/common/checkout/scm/git.py	2013-01-15 02:06:20 UTC (rev 139699)
+++ trunk/Tools/Scripts/webkitpy/common/checkout/scm/git.py	2013-01-15 02:08:38 UTC (rev 139700)
@@ -49,6 +49,8 @@
 
 class AmbiguousCommitError(Exception):
     def __init__(self, num_local_commits, working_directory_is_clean):
+        Exception.__init__(self, "Found %s local commits and the working directory is %s" % (
+            num_local_commits, ["not clean", "clean"][working_directory_is_clean]))
         self.num_local_commits = num_local_commits
         self.working_directory_is_clean = working_directory_is_clean
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to