diff --git a/.commit-template b/.commit-template index 813ca689..3edc08db 100644 --- a/.commit-template +++ b/.commit-template @@ -12,9 +12,6 @@ # One task per entry. Remember space after colon. #Task-number: # -# Solicit reviewers. They still need to use the Gerrit frontend. -#Reviewed-by: -# # ==[ Please wrap at 72 characters ]===================================| # # Remember to read http://wiki.qt-project.org/Commit_Policy diff --git a/.gitmodules b/.gitmodules index 4a1c3d05..0d6fb1aa 100644 --- a/.gitmodules +++ b/.gitmodules @@ -28,9 +28,6 @@ [submodule "qtdoc"] path = qtdoc url = ../qtdoc.git -[submodule "qlalr"] - path = qlalr - url = ../qlalr.git [submodule "qtrepotools"] path = qtrepotools url = ../qtrepotools.git @@ -103,3 +100,6 @@ [submodule "qtenginio"] path = qtenginio url = ../qtenginio.git +[submodule "qtwebsockets"] + path = qtwebsockets + url = ../qtwebsockets.git diff --git a/init-repository b/init-repository index 272193d8..b38a07e9 100755 --- a/init-repository +++ b/init-repository @@ -70,6 +70,12 @@ B Force initialization (even if the submodules are already checked out). +=item --force-hooks + +Force initialization of hooks (even if there are already hooks in checked out +submodules). + + =item --quiet, -q Be quiet. Will exit cleanly if the repository is already initialized. @@ -200,7 +206,6 @@ my %PROTOCOLS = ( my %GERRIT_REPOS = map { $_ => "qt/$_" } qw( qt3d qt5 - qlalr qtactiveqt qtandroidextras qtbase @@ -231,6 +236,7 @@ my %GERRIT_REPOS = map { $_ => "qt/$_" } qw( qtwayland qtwebkit qtwebkit-examples + qtwebsockets qtwinextras qtx11extras qtxmlpatterns @@ -243,6 +249,7 @@ my @DEFAULT_REPOS = qw( qtconnectivity qtdeclarative qtdoc + qtenginio qtgraphicaleffects qtimageformats qtmacextras @@ -258,6 +265,7 @@ my @DEFAULT_REPOS = qw( qtsvg qttools qttranslations + qtwebsockets qtwebkit qtwebkit-examples qtwinextras @@ -310,6 +318,7 @@ sub parse_arguments 'codereview-username' => "", 'detach-alternates' => 0 , 'force' => 0 , + 'force-hooks' => 0 , 'ignore-submodules' => 0 , 'mirror-url' => "", 'protocol' => "", @@ -322,7 +331,8 @@ sub parse_arguments 'alternates=s' => \$self->{qw{ alternates }}, 'codereview-username=s' => \$self->{qw{ codereview-username }}, 'copy-objects' => \$self->{qw{ detach-alternates }}, - 'force' => \$self->{qw{ force }}, + 'force|f' => \$self->{qw{ force }}, + 'force-hooks' => \$self->{qw{ force-hooks }}, 'ignore-submodules' => \$self->{qw{ ignore-submodules }}, 'mirror=s' => \$self->{qw{ mirror-url }}, 'quiet' => \$self->{qw{ quiet }}, @@ -574,6 +584,38 @@ sub git_clone_one_submodule return; } +sub ensure_link +{ + my ($self, $src, $tgt) = @_; + return if (!$self->{'force-hooks'} and -f $tgt); + unlink($tgt); # In case we have a dead symlink or pre-existing hook + print "Aliasing $src\n as $tgt ...\n" if (!$self->{quiet}); + return if eval { symlink($src, $tgt) }; + # Windows doesn't do (proper) symlinks. As the post_commit script needs + # them to locate itself, we write a forwarding script instead. + open SCRIPT, ">".$tgt or die "Cannot create forwarding script $tgt: $!\n"; + print SCRIPT "#!/bin/sh\nexec `dirname \$0`/$src \"\$\@\"\n"; + close SCRIPT; +} + +sub git_install_hooks +{ + my ($self) = @_; + + return if (!-d 'qtrepotools/git-hooks'); + + chomp(my @modules = `git submodule foreach :`); + push @modules, ""; + for my $module (@modules) { + $module =~ s,^Entering \'([^\']+)\'$,$1/,; + my $rel = $module; + $rel =~ s,[^/]+,..,g; + $rel .= "../../qtrepotools/git-hooks/"; + $self->ensure_link($rel.'gerrit_commit_msg_hook', $module.'.git/hooks/commit-msg'); + $self->ensure_link($rel.'git_post_commit_hook', $module.'.git/hooks/post-commit'); + } +} + sub run { my ($self) = @_; @@ -595,6 +637,8 @@ sub run $self->git_add_remotes('qt5'); + $self->git_install_hooks; + return; } diff --git a/qlalr b/qlalr deleted file mode 160000 index a803a5c2..00000000 --- a/qlalr +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a803a5c2142cd93a33ab5d3e549d794b1096bf0a diff --git a/qt.pro b/qt.pro index f9344690..0711e3e3 100644 --- a/qt.pro +++ b/qt.pro @@ -54,11 +54,13 @@ defineTest(addModule) { # users responsibility to ensure that all needed dependencies exist, or # it may not build. +ANDROID_EXTRAS = +android: ANDROID_EXTRAS = qtandroidextras + addModule(qtbase) addModule(qtandroidextras, qtbase) addModule(qtmacextras, qtbase) addModule(qtx11extras, qtbase) -addModule(qlalr, qtbase) addModule(qtsvg, qtbase) addModule(qtxmlpatterns, qtbase) addModule(qtdeclarative, qtbase, qtsvg qtxmlpatterns) @@ -71,7 +73,7 @@ addModule(qtjsondb, qtdeclarative) addModule(qtsystems, qtbase, qtdeclarative) addModule(qtlocation, qtbase, qt3d qtsystems qtmultimedia) addModule(qtsensors, qtbase, qtdeclarative) -addModule(qtconnectivity, qtbase, qtdeclarative) +addModule(qtconnectivity, qtbase $$ANDROID_EXTRAS, qtdeclarative) addModule(qtfeedback, qtdeclarative, qtmultimedia) addModule(qtpim, qtdeclarative, qtjsondb) addModule(qtwebkit, qtdeclarative, qtlocation qtmultimedia qtsensors, WebKit.pro) @@ -85,6 +87,7 @@ addModule(qtdocgallery, qtdeclarative, qtjsondb) !win32:!mac:addModule(qtwayland, qtbase, qtdeclarative) addModule(qtserialport, qtbase) addModule(qtenginio, qtdeclarative) +addModule(qtwebsockets, qtbase, qtdeclarative) addModule(qttranslations, qttools) addModule(qtdoc, qtdeclarative) addModule(qtqa, qtbase) diff --git a/qtactiveqt b/qtactiveqt index b21d3973..eaf2383f 160000 --- a/qtactiveqt +++ b/qtactiveqt @@ -1 +1 @@ -Subproject commit b21d397336d52d034ab6db699c26bf3918fe81e6 +Subproject commit eaf2383f13aa4f7aea25b4be86096f0fa9454618 diff --git a/qtandroidextras b/qtandroidextras index 09c0570c..743ca456 160000 --- a/qtandroidextras +++ b/qtandroidextras @@ -1 +1 @@ -Subproject commit 09c0570ce76576074fa0dd98276d959fe0287317 +Subproject commit 743ca4560fc99b91044f8ab01941dc89edeb00fa diff --git a/qtbase b/qtbase index 2b0f02aa..c92fead4 160000 --- a/qtbase +++ b/qtbase @@ -1 +1 @@ -Subproject commit 2b0f02aa5cc0f7d1b460d2d324d5d08c6f6d61b9 +Subproject commit c92fead4333683f7b13fc730203c67834aa478ef diff --git a/qtconnectivity b/qtconnectivity index 9902dfdb..2e0f7adb 160000 --- a/qtconnectivity +++ b/qtconnectivity @@ -1 +1 @@ -Subproject commit 9902dfdbc44934ce2e8072bc237ca8cdbfb3402b +Subproject commit 2e0f7adbe4257cc3914db0b4a9e6f42cb12f948d diff --git a/qtdeclarative b/qtdeclarative index 60d66bea..fc5314f9 160000 --- a/qtdeclarative +++ b/qtdeclarative @@ -1 +1 @@ -Subproject commit 60d66bea87b72e66e7c466e1c27f966762e1fd5a +Subproject commit fc5314f96990148a7c32b988caf53c5db92b2b4b diff --git a/qtdoc b/qtdoc index 19245e88..bd11d74a 160000 --- a/qtdoc +++ b/qtdoc @@ -1 +1 @@ -Subproject commit 19245e88bae96a8f3757c8db8e5f3104eae12db9 +Subproject commit bd11d74a66db4e72e8f1266c7eae833a4fcd5f4b diff --git a/qtenginio b/qtenginio index 136ee0aa..85f3fd04 160000 --- a/qtenginio +++ b/qtenginio @@ -1 +1 @@ -Subproject commit 136ee0aa5dc2276699018bc743e758ea9ffda12a +Subproject commit 85f3fd0456ebb5f16820f1c88647064f24106e5c diff --git a/qtgraphicaleffects b/qtgraphicaleffects index 1fbbe87e..9b1883d2 160000 --- a/qtgraphicaleffects +++ b/qtgraphicaleffects @@ -1 +1 @@ -Subproject commit 1fbbe87e6d5dc84bff70bd90b71d07f9982a8bc3 +Subproject commit 9b1883d2e90dd6ef92374d21e490a3de1c8330ba diff --git a/qtimageformats b/qtimageformats index dde6daec..554d6177 160000 --- a/qtimageformats +++ b/qtimageformats @@ -1 +1 @@ -Subproject commit dde6daeccdf0a3f8d49fe1777b49046576b12218 +Subproject commit 554d617762c86964dfa074074304993ccdfbe2c9 diff --git a/qtlocation b/qtlocation index 2ba9fd55..400c7fa8 160000 --- a/qtlocation +++ b/qtlocation @@ -1 +1 @@ -Subproject commit 2ba9fd5550eb7766c20b3a61679e88ec4a6c8a54 +Subproject commit 400c7fa8e767c65aab4b8a1d5161b5259080cec9 diff --git a/qtmacextras b/qtmacextras index 39ccd598..3d7f132d 160000 --- a/qtmacextras +++ b/qtmacextras @@ -1 +1 @@ -Subproject commit 39ccd598cd36b01e3b876f55030c639a9bc39687 +Subproject commit 3d7f132db4f91eccce1987c2860834a0b88d392d diff --git a/qtmultimedia b/qtmultimedia index db7f7cc5..a7b8872c 160000 --- a/qtmultimedia +++ b/qtmultimedia @@ -1 +1 @@ -Subproject commit db7f7cc5654ddec60297259bc9f86f5f777749cd +Subproject commit a7b8872cd5de1908bb2daa08a32afb5bff879ac2 diff --git a/qtqa b/qtqa index afafbfaf..e4fe8a25 160000 --- a/qtqa +++ b/qtqa @@ -1 +1 @@ -Subproject commit afafbfafd97dadc1433ec132e8891dc453720d48 +Subproject commit e4fe8a254c29cbf2ed657aee86ca9440e15f5333 diff --git a/qtquick1 b/qtquick1 index 07d8ce32..c56f5d88 160000 --- a/qtquick1 +++ b/qtquick1 @@ -1 +1 @@ -Subproject commit 07d8ce32b1112dcb590c793ee51cb713e514011b +Subproject commit c56f5d8848ce03cc6667804f815de47d2d8221fb diff --git a/qtquickcontrols b/qtquickcontrols index 1c54d411..59a6cb0b 160000 --- a/qtquickcontrols +++ b/qtquickcontrols @@ -1 +1 @@ -Subproject commit 1c54d411ad6e98c3779a412750aec8b93d587872 +Subproject commit 59a6cb0b5ebdd5eae0152a9b34c1504006a7ccea diff --git a/qtrepotools b/qtrepotools index 0f80e8a8..dc282c7d 160000 --- a/qtrepotools +++ b/qtrepotools @@ -1 +1 @@ -Subproject commit 0f80e8a8fa001d0e36b313ae4b8696eadd594a52 +Subproject commit dc282c7db73967f37fe970dddc4beee926c3227d diff --git a/qtscript b/qtscript index f89d64ca..08d9ef71 160000 --- a/qtscript +++ b/qtscript @@ -1 +1 @@ -Subproject commit f89d64ca722acf4a1a38c5e136bb01eff2525978 +Subproject commit 08d9ef715265d33f4cf04693b0787fd75994dc42 diff --git a/qtsensors b/qtsensors index 9a8319a3..2a503c28 160000 --- a/qtsensors +++ b/qtsensors @@ -1 +1 @@ -Subproject commit 9a8319a39a06d6cf3163978301d650b8f3558c62 +Subproject commit 2a503c28e4b9c9c05ee69e115f3530bb764844e3 diff --git a/qtserialport b/qtserialport index 336fbee2..4a634dde 160000 --- a/qtserialport +++ b/qtserialport @@ -1 +1 @@ -Subproject commit 336fbee2e34c7eaf48550105d542cad1979c6684 +Subproject commit 4a634dde17361f41b83c92f562714daf8aa51249 diff --git a/qtsvg b/qtsvg index ae68091e..bacf4858 160000 --- a/qtsvg +++ b/qtsvg @@ -1 +1 @@ -Subproject commit ae68091e0d6023410bc657cf54e7fa9b6c8bbcc2 +Subproject commit bacf4858ce11074d4be94aab45c67c4676134198 diff --git a/qttools b/qttools index 80c6a5ea..8e55ee3f 160000 --- a/qttools +++ b/qttools @@ -1 +1 @@ -Subproject commit 80c6a5ea7f827647cc58037e1d1cf4bbf30e1fb6 +Subproject commit 8e55ee3f610315f8fc346020f40211e0030bcebd diff --git a/qttranslations b/qttranslations index b26b3e6c..df32d920 160000 --- a/qttranslations +++ b/qttranslations @@ -1 +1 @@ -Subproject commit b26b3e6c713b6f3b6f5b9b6a010763724c69b0ec +Subproject commit df32d9208644adb3a7ef55c3ff8461a4fe156020 diff --git a/qtwebkit b/qtwebkit index a1b801fc..0546c865 160000 --- a/qtwebkit +++ b/qtwebkit @@ -1 +1 @@ -Subproject commit a1b801fc98ccda988df41e08dc70fdbd50ecb513 +Subproject commit 0546c8656a3728bf4375da39027e096beba4f111 diff --git a/qtwebkit-examples b/qtwebkit-examples index cb8ed969..c9d13139 160000 --- a/qtwebkit-examples +++ b/qtwebkit-examples @@ -1 +1 @@ -Subproject commit cb8ed9694b850a429a93490beaa6462d9f3b8ea6 +Subproject commit c9d13139b65818785f218cc96d136d33591ca2f5 diff --git a/qtwebsockets b/qtwebsockets new file mode 160000 index 00000000..a69877e8 --- /dev/null +++ b/qtwebsockets @@ -0,0 +1 @@ +Subproject commit a69877e8c675c0ad69b6fcfa00c57433e9b0c94b diff --git a/qtwinextras b/qtwinextras index 8e497a7f..d33a4550 160000 --- a/qtwinextras +++ b/qtwinextras @@ -1 +1 @@ -Subproject commit 8e497a7fc6fc66f480a78dee705ada67c24ac490 +Subproject commit d33a4550847deb5217e6fb9fb66c47d2a50780a4 diff --git a/qtx11extras b/qtx11extras index dd7eec92..947361a7 160000 --- a/qtx11extras +++ b/qtx11extras @@ -1 +1 @@ -Subproject commit dd7eec92e7a5f4383783cc161f638867572dc208 +Subproject commit 947361a7dc8db093d0b8e1ec5ac953470a180259 diff --git a/qtxmlpatterns b/qtxmlpatterns index eaf0a92d..d25091bb 160000 --- a/qtxmlpatterns +++ b/qtxmlpatterns @@ -1 +1 @@ -Subproject commit eaf0a92dcb6fb12f3d65aa4fc806ccbfaa7f7db0 +Subproject commit d25091bb8b52455e415f8147a9100094c489a041