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

Unified Diff: gclient.py

Issue 2384001: Add --deps for all commands beside config and help. Fix help. (Closed)
Patch Set: Use more generic wording; copy-paste fail Created 10 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient.py
diff --git a/gclient.py b/gclient.py
index c3863d39c6205c09de1fbcd8fe19a2161d436481..7246cdeac47383317023d1fa6ab0d1c89c0a51bb 100644
--- a/gclient.py
+++ b/gclient.py
@@ -802,6 +802,10 @@ def CMDcleanup(parser, args):
Mostly svn-specific. Simply runs 'svn cleanup' for each module.
"""
+ parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
+ help="override deps for the specified (comma-separated) "
+ "platform(s); 'all' will process all deps_os "
+ "references")
(options, args) = parser.parse_args(args)
client = GClient.LoadCurrentConfig(options)
if not client:
@@ -857,6 +861,10 @@ URL.
def CMDexport(parser, args):
"""Wrapper for svn export for all managed directories."""
+ parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
+ help="override deps for the specified (comma-separated) "
+ "platform(s); 'all' will process all deps_os "
+ "references")
(options, args) = parser.parse_args(args)
if len(args) != 1:
raise gclient_utils.Error("Need directory name")
@@ -884,6 +892,10 @@ dependencies, and performs minimal postprocessing of the output. The
resulting patch is printed to stdout and can be applied to a freshly
checked out tree via 'patch -p0 < patchfile'.
"""
+ parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
+ help="override deps for the specified (comma-separated) "
+ "platform(s); 'all' will process all deps_os "
+ "references")
(options, args) = parser.parse_args(args)
client = GClient.LoadCurrentConfig(options)
if not client:
@@ -898,8 +910,9 @@ checked out tree via 'patch -p0 < patchfile'.
def CMDstatus(parser, args):
"""Show modification status for every dependencies."""
parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
- help="sync deps for the specified (comma-separated) "
- "platform(s); 'all' will sync all platforms")
+ help="override deps for the specified (comma-separated) "
+ "platform(s); 'all' will process all deps_os "
+ "references")
(options, args) = parser.parse_args(args)
client = GClient.LoadCurrentConfig(options)
if not client:
@@ -942,8 +955,9 @@ def CMDsync(parser, args):
parser.add_option("--reset", action="store_true",
help="resets any local changes before updating (git only)")
parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
- help="sync deps for the specified (comma-separated) "
- "platform(s); 'all' will sync all platforms")
+ help="override deps for the specified (comma-separated) "
+ "platform(s); 'all' will process all deps_os "
+ "references")
parser.add_option("--manually_grab_svn_rev", action="store_true",
help="Skip svn up whenever possible by requesting "
"actual HEAD revision from the repository")
@@ -990,6 +1004,10 @@ def CMDupdate(parser, args):
def CMDdiff(parser, args):
"""Displays local diff for every dependencies."""
+ parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
+ help="override deps for the specified (comma-separated) "
+ "platform(s); 'all' will process all deps_os "
+ "references")
(options, args) = parser.parse_args(args)
client = GClient.LoadCurrentConfig(options)
if not client:
@@ -1004,8 +1022,9 @@ def CMDdiff(parser, args):
def CMDrevert(parser, args):
"""Revert all modifications in every dependencies."""
parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
- help="sync deps for the specified (comma-separated) "
- "platform(s); 'all' will sync all platforms")
+ help="override deps for the specified (comma-separated) "
+ "platform(s); 'all' will process all deps_os "
+ "references")
parser.add_option("--nohooks", action="store_true",
help="don't run hooks after the revert is complete")
(options, args) = parser.parse_args(args)
@@ -1020,8 +1039,9 @@ def CMDrevert(parser, args):
def CMDrunhooks(parser, args):
"""Runs hooks for files that have been modified in the local working copy."""
parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
- help="sync deps for the specified (comma-separated) "
- "platform(s); 'all' will sync all platforms")
+ help="override deps for the specified (comma-separated) "
+ "platform(s); 'all' will process all deps_os "
+ "references")
parser.add_option("--force", action="store_true", default=True,
help="Deprecated. No effect.")
(options, args) = parser.parse_args(args)
@@ -1039,12 +1059,15 @@ def CMDrunhooks(parser, args):
def CMDrevinfo(parser, args):
"""Outputs details for every dependencies."""
+ parser.add_option("--deps", dest="deps_os", metavar="OS_LIST",
+ help="override deps for the specified (comma-separated) "
+ "platform(s); 'all' will process all deps_os "
+ "references")
parser.add_option("--snapshot", action="store_true",
help="create a snapshot file of the current "
"version of all repositories")
(options, args) = parser.parse_args(args)
client = GClient.LoadCurrentConfig(options)
- options.deps_os = None
if not client:
raise gclient_utils.Error("client not configured; see 'gclient config'")
client.PrintRevInfo()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698