summaryrefslogtreecommitdiffstats
path: root/command.py
diff options
context:
space:
mode:
authorDavid Holmer <odinguru@gmail.com>2012-11-14 19:19:00 -0500
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-04-03 22:27:45 +0000
commit0a1c6a1c16e2c89f98158cb2f79dda1583a8fac4 (patch)
tree2446c673c4eddf2a499e36b4e898ea258a6d3c7a /command.py
parent33e045673786f3477e805ade0f337de08e89a7a8 (diff)
downloadgit-repo-0a1c6a1c16e2c89f98158cb2f79dda1583a8fac4.tar.gz
Special handling for manifest group "default"
Change Details: * Make "default" a special manifest group that matches any project that does not have the special project group "notdefault" * Use "default" instead of "all,-notdefault" when user does not specify manifest group * Expand -g option help to include example usage of manifest groups Change Benefits: * Allow a more intuitive and expressive manifest groups specification: * "default" instead of "all,-notdefault" * "default,foo" instead of "all,-notdefault,foo" * "default,-foo" instead of "all,-notdefault,-foo" * "foo,-default" which has no equivalent * Default manifest groups behavior can be restored by the command 'repo init -g default'. This is significantly more intuitive than the current equivalent command 'repo init -g all,-notdefault'. Change-Id: I6d0673791d64a650110a917c248bcebb23b279d3
Diffstat (limited to 'command.py')
-rw-r--r--command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.py b/command.py
index 96d7848f..43988520 100644
--- a/command.py
+++ b/command.py
@@ -136,7 +136,7 @@ class Command(object):
136 136
137 groups = mp.config.GetString('manifest.groups') 137 groups = mp.config.GetString('manifest.groups')
138 if not groups: 138 if not groups:
139 groups = 'all,-notdefault,platform-' + platform.system().lower() 139 groups = 'default,platform-' + platform.system().lower()
140 groups = [x for x in re.split(r'[,\s]+', groups) if x] 140 groups = [x for x in re.split(r'[,\s]+', groups) if x]
141 141
142 if not args: 142 if not args: