Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1736)

Unified Diff: context.py

Issue 23483019: Changes to support One-Click Revert in Commit Queue (Closed) Base URL: https://src.chromium.org/chrome/trunk/tools/commit-queue/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « commit_queue.py ('k') | pending_manager.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « commit_queue.py ('k') | pending_manager.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698