mirror of
git://code.qt.io/qt/qt5.git
synced 2026-05-09 20:47:49 +08:00
Merge remote-tracking branch 'origin/stable' into dev
Change-Id: Ib1694808847f26576cc3c7780bd1c6d3689a8a26
This commit is contained in:
@@ -12,9 +12,6 @@
|
|||||||
# One task per entry. Remember space after colon.
|
# One task per entry. Remember space after colon.
|
||||||
#Task-number:
|
#Task-number:
|
||||||
#
|
#
|
||||||
# Solicit reviewers. They still need to use the Gerrit frontend.
|
|
||||||
#Reviewed-by:
|
|
||||||
#
|
|
||||||
# ==[ Please wrap at 72 characters ]===================================|
|
# ==[ Please wrap at 72 characters ]===================================|
|
||||||
#
|
#
|
||||||
# Remember to read http://wiki.qt-project.org/Commit_Policy
|
# Remember to read http://wiki.qt-project.org/Commit_Policy
|
||||||
|
|||||||
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -28,9 +28,6 @@
|
|||||||
[submodule "qtdoc"]
|
[submodule "qtdoc"]
|
||||||
path = qtdoc
|
path = qtdoc
|
||||||
url = ../qtdoc.git
|
url = ../qtdoc.git
|
||||||
[submodule "qlalr"]
|
|
||||||
path = qlalr
|
|
||||||
url = ../qlalr.git
|
|
||||||
[submodule "qtrepotools"]
|
[submodule "qtrepotools"]
|
||||||
path = qtrepotools
|
path = qtrepotools
|
||||||
url = ../qtrepotools.git
|
url = ../qtrepotools.git
|
||||||
|
|||||||
@@ -70,6 +70,12 @@ B<Global options:>
|
|||||||
Force initialization (even if the submodules are already checked out).
|
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
|
=item --quiet, -q
|
||||||
|
|
||||||
Be quiet. Will exit cleanly if the repository is already initialized.
|
Be quiet. Will exit cleanly if the repository is already initialized.
|
||||||
@@ -200,7 +206,6 @@ my %PROTOCOLS = (
|
|||||||
my %GERRIT_REPOS = map { $_ => "qt/$_" } qw(
|
my %GERRIT_REPOS = map { $_ => "qt/$_" } qw(
|
||||||
qt3d
|
qt3d
|
||||||
qt5
|
qt5
|
||||||
qlalr
|
|
||||||
qtactiveqt
|
qtactiveqt
|
||||||
qtandroidextras
|
qtandroidextras
|
||||||
qtbase
|
qtbase
|
||||||
@@ -244,6 +249,7 @@ my @DEFAULT_REPOS = qw(
|
|||||||
qtconnectivity
|
qtconnectivity
|
||||||
qtdeclarative
|
qtdeclarative
|
||||||
qtdoc
|
qtdoc
|
||||||
|
qtenginio
|
||||||
qtgraphicaleffects
|
qtgraphicaleffects
|
||||||
qtimageformats
|
qtimageformats
|
||||||
qtmacextras
|
qtmacextras
|
||||||
@@ -312,6 +318,7 @@ sub parse_arguments
|
|||||||
'codereview-username' => "",
|
'codereview-username' => "",
|
||||||
'detach-alternates' => 0 ,
|
'detach-alternates' => 0 ,
|
||||||
'force' => 0 ,
|
'force' => 0 ,
|
||||||
|
'force-hooks' => 0 ,
|
||||||
'ignore-submodules' => 0 ,
|
'ignore-submodules' => 0 ,
|
||||||
'mirror-url' => "",
|
'mirror-url' => "",
|
||||||
'protocol' => "",
|
'protocol' => "",
|
||||||
@@ -324,7 +331,8 @@ sub parse_arguments
|
|||||||
'alternates=s' => \$self->{qw{ alternates }},
|
'alternates=s' => \$self->{qw{ alternates }},
|
||||||
'codereview-username=s' => \$self->{qw{ codereview-username }},
|
'codereview-username=s' => \$self->{qw{ codereview-username }},
|
||||||
'copy-objects' => \$self->{qw{ detach-alternates }},
|
'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 }},
|
'ignore-submodules' => \$self->{qw{ ignore-submodules }},
|
||||||
'mirror=s' => \$self->{qw{ mirror-url }},
|
'mirror=s' => \$self->{qw{ mirror-url }},
|
||||||
'quiet' => \$self->{qw{ quiet }},
|
'quiet' => \$self->{qw{ quiet }},
|
||||||
@@ -576,6 +584,38 @@ sub git_clone_one_submodule
|
|||||||
return;
|
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
|
sub run
|
||||||
{
|
{
|
||||||
my ($self) = @_;
|
my ($self) = @_;
|
||||||
@@ -597,6 +637,8 @@ sub run
|
|||||||
|
|
||||||
$self->git_add_remotes('qt5');
|
$self->git_add_remotes('qt5');
|
||||||
|
|
||||||
|
$self->git_install_hooks;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
1
qlalr
1
qlalr
Submodule qlalr deleted from 4071d86e82
3
qt.pro
3
qt.pro
@@ -61,12 +61,11 @@ addModule(qtbase)
|
|||||||
addModule(qtandroidextras, qtbase)
|
addModule(qtandroidextras, qtbase)
|
||||||
addModule(qtmacextras, qtbase)
|
addModule(qtmacextras, qtbase)
|
||||||
addModule(qtx11extras, qtbase)
|
addModule(qtx11extras, qtbase)
|
||||||
addModule(qlalr, qtbase)
|
|
||||||
addModule(qtsvg, qtbase)
|
addModule(qtsvg, qtbase)
|
||||||
addModule(qtxmlpatterns, qtbase)
|
addModule(qtxmlpatterns, qtbase)
|
||||||
addModule(qtdeclarative, qtbase, qtsvg qtxmlpatterns)
|
addModule(qtdeclarative, qtbase, qtsvg qtxmlpatterns)
|
||||||
addModule(qtquickcontrols, qtdeclarative)
|
addModule(qtquickcontrols, qtdeclarative)
|
||||||
addModule(qtmultimedia, qtdeclarative)
|
addModule(qtmultimedia, qtbase, qtdeclarative)
|
||||||
addModule(qtwinextras, qtbase, qtdeclarative qtmultimedia)
|
addModule(qtwinextras, qtbase, qtdeclarative qtmultimedia)
|
||||||
addModule(qtactiveqt, qtbase)
|
addModule(qtactiveqt, qtbase)
|
||||||
addModule(qt3d, qtdeclarative)
|
addModule(qt3d, qtdeclarative)
|
||||||
|
|||||||
Reference in New Issue
Block a user