summaryrefslogtreecommitdiffstats
path: root/scripts/qt
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@digia.com>2012-12-05 12:44:17 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-10 09:01:50 +0100
commit3e37cc74538ab877ca604c1f2d73cd9e9ebef06d (patch)
treeb8eb235c8f6e14c8de28b23dfa1d27345a943d59 /scripts/qt
parent2e97f17f9a30aafeacc15ab54738e0cbde591b2a (diff)
Allow qt_update_submodules.pl to track and update any branch
qt/qtqa.git and qt/qtrepotools.git don't have a 'dev/stable' branch at the moment, so they need to track 'master'. qt/qtquick3d.git is obsolete, so it was removed. Change-Id: I0134ad0d79aa98649bff17d6b688e3ac7ef31125 Reviewed-by: Rohan McGovern <rohan@mcgovern.id.au> Reviewed-by: Samuli Piippo <samuli.piippo@digia.com> Reviewed-by: Janne Anttila <janne.anttila@digia.com>
Diffstat (limited to 'scripts/qt')
-rwxr-xr-xscripts/qt/qt_update_submodules.pl19
1 files changed, 13 insertions, 6 deletions
diff --git a/scripts/qt/qt_update_submodules.pl b/scripts/qt/qt_update_submodules.pl
index 7ae50235..492d878b 100755
--- a/scripts/qt/qt_update_submodules.pl
+++ b/scripts/qt/qt_update_submodules.pl
@@ -72,16 +72,21 @@ Readonly my @PROPERTIES => (
q{qt.git.url} => q{giturl of the repo to push to (only used if qt.git.push }
. q{is set)},
- q{qt.git.ref} => q{the ref to push to (only used if qt.git.push is set)},
+ q{qt.git.ref} => q{the ref to push to (`stable' branch by default, only used }
+ . q{if qt.git.push is set)},
+
+ q{qt.git.submodule.ref} => q{the submodule ref which should be tracked (`stable' branch }
+ . q{by default)},
q{qt.init-repository.args} => q{additional arguments for init-repository; e.g., use }
. q{-module-subset argument to only update a subset of modules},
);
# Map from submodule to the ref which should be tracked.
-# When omitted, defaults to `refs/heads/master'.
+# When omitted, defaults to `refs/heads/stable'.
Readonly my %SUBMODULE_TRACKING_REF => (
- qtquick3d => 'refs/heads/qml2',
+ qtrepotools => 'refs/heads/master',
+ qtqa => 'refs/heads/master',
);
# Author and committer to be used for commits by this script.
@@ -113,7 +118,8 @@ sub read_and_store_configuration
'qt.git.push' => 0,
'qt.git.push.dry-run' => 0,
'qt.git.url' => 'ssh://qt_submodule_update_bot@codereview.qt-project.org:29418/qt/qt5',
- 'qt.git.ref' => 'refs/for/master',
+ 'qt.git.ref' => 'refs/for/stable',
+ 'qt.git.submodule.ref' => 'refs/heads/stable',
'qt.init-repository.args' => q{},
);
@@ -241,8 +247,9 @@ sub update_submodule
my ($self, $submodule) = @_;
my $base_dir = $self->{ 'base.dir' };
+ my $qt_git_submodule_ref = $self->{ 'qt.git.submodule.ref' };
- my $ref = $SUBMODULE_TRACKING_REF{ $submodule } // 'refs/heads/master';
+ my $ref = $SUBMODULE_TRACKING_REF{ $submodule } // $qt_git_submodule_ref;
# Note that we always use the giturl stored in .gitmodules, even though
# init-repository may have used some other giturl.
@@ -443,7 +450,7 @@ The expected usage of this script is:
Periodically (e.g. daily), this script is run on qt5.git.
It updates all submodules to the latest SHA1 for each tracked branch (typically
-`master'), and pushes the change to gerrit.
+`stable'), and pushes the change to gerrit.
=item *