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

Unified Diff: tools/cr/cr/commands/sync.py

Issue 142933004: [cr tool] Make context implicit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 9 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 | « tools/cr/cr/commands/shell.py ('k') | tools/cr/cr/config.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cr/cr/commands/sync.py
diff --git a/tools/cr/cr/commands/sync.py b/tools/cr/cr/commands/sync.py
index c18187f4934dae85dc901e40ac7ae94d7494a188..c7e6e70c2cf8a463c696ecec10fcab2ad8151a08 100644
--- a/tools/cr/cr/commands/sync.py
+++ b/tools/cr/cr/commands/sync.py
@@ -36,17 +36,16 @@ class SyncCommand(cr.Command):
# TODO(iancottrell): clean no-hooks support would be nice.
return parser
- def Run(self, context):
- self.Sync(context, context.remains)
+ def Run(self):
+ self.Sync(cr.context.remains)
@staticmethod
- def Sync(context, args):
+ def Sync(args):
# TODO(iancottrell): we should probably run the python directly,
# rather than the shell wrapper
# TODO(iancottrell): try to help out when the local state is not a good
# one to do a sync in
- cr.Host.Execute(context, '{GCLIENT_BINARY}', 'sync', *args)
-
+ cr.Host.Execute('{GCLIENT_BINARY}', 'sync', *args)
@classmethod
def ClassInit(cls):
« no previous file with comments | « tools/cr/cr/commands/shell.py ('k') | tools/cr/cr/config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698