diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2017-09-21 17:31:11 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2017-09-22 12:53:15 +0000 |
commit | bc6ac852cc3bccf6138d70aa0d6c4ffd15c29755 (patch) | |
tree | b3b73e89675a7129d3903ec0fe7206f45b62b899 /packaging-tools/api-review-gen | |
parent | 442f2b4901f62bc69506e7b26a86fc9ff50a046f (diff) |
Add instructions for reviewers to the API review commit message
Explain how to manually add missing changes to the review.
Change-Id: Ie063a388c60ddc07536a04c318f192b71f00ac45
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'packaging-tools/api-review-gen')
-rwxr-xr-x | packaging-tools/api-review-gen | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/packaging-tools/api-review-gen b/packaging-tools/api-review-gen index 42c167292..b85d54134 100755 --- a/packaging-tools/api-review-gen +++ b/packaging-tools/api-review-gen @@ -318,6 +318,32 @@ fi ( echo "WIP: API comparison from $PRIOR to $RELEASE" echo git status | grep 'deleted:' | tr '\t' ' ' + cat <<EOF + +Note to reviewers: if you know of other changes to API, not covered by +this review, fetch this from Gerrit - see its checkout instructions; +you might want to add -b $BRANCH to those - and you +can add files to the result. This can be relevant for behavior +changes in the .cpp or, for changes to documented behavior, in .qdoc +files. + +Just git checkout $RELEASE each relevant file; you can then git reset +HEAD each and git add -p to select the relevant changes or use git +reset -p HEAD to unstage what git checkout has staged. Try not to +include extraneous (non-API) changes. Once you've added what matters, +git commit --amend and push back to gerrit's refs/for/$RELEASE in the +usual way. + +Between staging changes from $RELEASE and committing, you can filter +some boring changes by running qtsdk/packaging-tools/resetboring.py +in the top-level directory of your module; this selectively de-stages +things commonly deemed boring in review. (You'll need the python +dulwich package installed, for this.) You can git add -p after that, +of course, to restore any changes you think aren't boring. + +Remember that the parent of this commit is $PRIOR, not $RELEASE, despite +the review being sent to the latter in Gerrit. +EOF if [ -n "$CHANGEID" ] then echo |