diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-16 18:14:49 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-17 16:40:41 +0100 |
commit | f8b8a9a59f8f7eced57e9d68e86f11073eba20a8 (patch) | |
tree | 1d198cd1163a171fd20910ff5b92f3de5ee8065e /cmake/QtSynchronizeRepo.cmake | |
parent | c4c11e016ffe9a4285a959b294b6b9dd334b096d (diff) |
Add a script to synchronize the repo to a consistent (sub)set
Make a few modifications to the dependency evaluation to include the
revision of each dependency, and a method that checks each dependency
out to the revision necessary to create a consistent set for the
requested module.
If the requested module is ".", check all modules out to the given
revision.
Can be called (ideally from a git-sync-to alias script):
cmake -DSYNC_TO_MODULE="$1" -DSYNC_TO_BRANCH="$2" \
-P cmake/QtSynchronizeRepo.cmake
Change-Id: I007e9f9023bae949907b64e264ae7869dff1da2e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtSynchronizeRepo.cmake')
-rw-r--r-- | cmake/QtSynchronizeRepo.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/QtSynchronizeRepo.cmake b/cmake/QtSynchronizeRepo.cmake new file mode 100644 index 00000000..522ea76e --- /dev/null +++ b/cmake/QtSynchronizeRepo.cmake @@ -0,0 +1,3 @@ +include(cmake/QtTopLevelHelpers.cmake) + +qt_internal_sync_to(${SYNC_TO_MODULE} ${SYNC_TO_BRANCH}) |