mail.sh: further restrict new branch change summary
commitd4e42fd6d4133e584ff95edf8bfff683da61956e
authorKyle J. McKay <mackyle@gmail.com>
Thu, 18 Aug 2016 12:43:07 +0000 (18 05:43 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 18 Aug 2016 12:43:07 +0000 (18 05:43 -0700)
tree0c249ab36dfe6e03fd23adffa79dcfe613d89449
parent483d80e230b5a9a3466b20052ce70edfbbcd4903
mail.sh: further restrict new branch change summary

The recently added changes to improve the new branch change
summary when the new branch is a fork of a pre-existing revision
rely on the heuristic that the last shown revision by show_new_revisions
will be the single leaf in the (possibly partial) graph shown by
show_new_revisions.

This may not always be the case.

Therefore detect these other cases (where show_new_revisions showed a
graph fragment with more than one leaf) and suppress the summary of
changes for new branch notifications when this situation is detected
to avoid showing an incorrect and misleading summary of changes.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
taskd/mail.sh