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

Unified Diff: tests/gclient_test.py

Issue 155759: Add a --nohooks to gclient to update/sync/revert without calling the hooks (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Created 11 years, 5 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
« gclient.py ('K') | « gclient.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gclient_test.py
===================================================================
--- tests/gclient_test.py (revision 21065)
+++ tests/gclient_test.py (working copy)
@@ -80,13 +80,14 @@
def __init__(self, test_case, verbose=False, spec=None,
config_filename='a_file_name',
entries_filename='a_entry_file_name',
- deps_file='a_deps_file_name', force=False):
+ deps_file='a_deps_file_name', force=False, nohooks=False):
self.verbose = verbose
self.spec = spec
self.config_filename = config_filename
self.entries_filename = entries_filename
self.deps_file = deps_file
self.force = force
+ self.nohooks = nohooks
self.revisions = []
self.manually_grab_svn_rev = True
self.deps_os = None
@@ -1007,6 +1008,7 @@
self.manually_grab_svn_rev = True
self.deps_os = None
self.force = False
+ self.nohooks = False
def setUp(self):
GClientBaseTestCase.setUp(self)
@@ -1137,6 +1139,7 @@
options = self.Options(verbose=True)
base_path = os.path.join(self.root_dir, self.relpath)
options.force = True
+ options.nohooks = False
file_info = {
'Repository Root': 'blah',
'URL': self.url,
« gclient.py ('K') | « gclient.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698