Until now, only drm-intel-next pull requests included all previous annotated tag texts in the pull request mail. Do this for all branches in case they were previously tagged using dim tag-branch.
Signed-off-by: Jani Nikula <jani.nik...@intel.com> --- dim | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/dim b/dim index 5081e9ac4a34..12b86cf3a382 100755 --- a/dim +++ b/dim @@ -1939,7 +1939,7 @@ function dim_tag_next # dim_pull_request branch upstream function dim_pull_request { - local branch upstream remote repo req_file url_list git_url tag + local branch upstream remote repo req_file url_list git_url tag tags branch=${1:?$usage} upstream=${2:?$usage} @@ -1957,21 +1957,26 @@ function dim_pull_request if [ "$branch" = "drm-intel-next" ]; then # drm-intel-next pulls have been tagged using dim update-next - drm_intel_next_tags=$(git_unmerged_tags "$branch" "$upstream") - prep_pull_mail $req_file $drm_intel_next_tags - tag=$(git describe --all --exact "$branch@{upstream}") - repo="drm-intel" else tag=$(tag_name "$branch") gitk --first-parent "$branch" ^$upstream & tag_branch $tag $branch $DRY git push $remote $tag - prep_pull_mail $req_file $tag repo=$(branch_to_repo $branch) fi + tags=$(git_unmerged_tags "$branch" "$upstream") + prep_pull_mail $req_file $tags + if [[ -z "$tags" ]]; then + echoerr "no unmerged tags, please use dim tag-branch" + return 1 + fi + + # Use the latest tag for the pull request + tag="${tags%% *}" + url_list=${drm_tip_repos[$repo]} git_url=$(pick_protocol_url git $url_list) -- 2.11.0 _______________________________________________ dim-tools mailing list dim-tools@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dim-tools