diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2012-11-02 20:59:30 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-03 20:47:07 +0200 |
commit | ec783bb21e0524d575adaf1d7a36811055c9fe5d (patch) | |
tree | 9be20d3763422974dd7430137c139fd44bf16de8 | |
parent | 2f8a096c9cf722978f7995097fd2807445898f58 (diff) | |
download | qt5-ec783bb21e0524d575adaf1d7a36811055c9fe5d.tar.gz |
clone only a specific subset of repositories by default
the list corresponds to the current contents of .gitmodules.
this will allow us to re-add more modules to the supermodule without
bothering people and the qt5 integration with unmaintained modules.
Change-Id: I8bc429fed8e4d1f729b375b302531472d3c4e267
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
-rwxr-xr-x | init-repository | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/init-repository b/init-repository index 8cbdc80e..bd9fa038 100755 --- a/init-repository +++ b/init-repository @@ -91,6 +91,8 @@ git repository. Only initialize the specified subset of modules given as the argument. Specified modules must already exist in .gitmodules. +The string "all" results in cloning all known modules. The default is the set of +maintained modules. =item --no-update @@ -239,6 +241,27 @@ my %GERRIT_REPOS = map { $_ => "qt/$_" } qw( qtxmlpatterns ); +my @DEFAULT_REPOS = qw( + qtactiveqt + qtbase + qtdeclarative + qtdoc + qtgraphicaleffects + qtimageformats + qtjsbackend + qtmultimedia + qtqa + qtquick1 + qtrepotools + qtscript + qtsvg + qttools + qttranslations + qtwebkit + qtwebkit-examples-and-demos + qtxmlpatterns +); + my $GERRIT_SSH_BASE = 'ssh://@USER@codereview.qt-project.org@PORT@/'; @@ -287,7 +310,7 @@ sub parse_arguments 'protocol' => "", 'update' => 1 , 'webkit' => 1 , - 'module-subset' => "", + 'module-subset' => join(",", @DEFAULT_REPOS), ); GetOptionsFromArray(\@args, @@ -328,7 +351,9 @@ sub parse_arguments # Replace any double trailing slashes from end of mirror $self->{'mirror-url'} =~ s{//+$}{/}; - if ($self->{'module-subset'}) { + if ($self->{'module-subset'} eq "all") { + $self->{'module-subset'} = ""; + } else { $self->{'module-subset'} = { map { $_ => 1 } split(qr{,}, $self->{'module-subset'}) }; |