Index: context.py |
=================================================================== |
--- context.py (revision 220012) |
+++ context.py (working copy) |
@@ -5,16 +5,20 @@ |
class Context(object): |
"""Class to hold context about a the current code review and checkout.""" |
- def __init__(self, rietveld, checkout, status, server_hooks_missing=False): |
+ def __init__(self, rietveld, checkout, status, check_for_reverts=False, |
+ server_hooks_missing=False): |
""" |
Args: |
rietveld: Instance of rietveld.Rietveld. |
checkout: Instance of checkout.SvnCheckout |
status: Instance of async_push.AsyncPush. |
+ check_for_reverts: True if the project's CQ should check for reverted |
+ changes on Rietveld. |
server_hooks_missing: True if the project's SVN repository does not have |
server-side hooks configured. |
""" |
self.rietveld = rietveld |
self.checkout = checkout |
self.status = status |
+ self.check_for_reverts = check_for_reverts |
self.server_hooks_missing = server_hooks_missing |