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

Unified Diff: gclient_utils.py

Issue 8135008: Force requirements modification to be locked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: rebase against head Created 9 years, 2 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 | « gclient.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient_utils.py
diff --git a/gclient_utils.py b/gclient_utils.py
index 405f493ce5275a2495cc40994958446279f7c658..375dd576f9b90fc1ad41b04fafa878cf568b0bd3 100644
--- a/gclient_utils.py
+++ b/gclient_utils.py
@@ -497,6 +497,10 @@ class WorkItem(object):
def requirements(self):
return tuple(self._requirements)
+ @lockedmethod
+ def add_requirement(self, new):
+ self._requirements.add(new)
+
class ExecutionQueue(object):
"""Runs a set of WorkItem that have interdependencies and were WorkItem are
« no previous file with comments | « gclient.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698