Omit the content of the diffs, when the message becomes too long. Just
rely on leaving a diff URL.
* tools/hook-scripts/mailer/mailer.py:
(Commit.long_commit): pass False for (new) NO_DIFF_CONTENT parameter
to generate_commit()
(Commit.short_commit): pass True for (new) NO_DIFF_CONTENT parameter
to generate_commit(), removing the generate_urls() call.
(generate_commit): accept a new NO_DIFF_CONTENT parameter, and pass
that into the generate_changelist_diffs() calls, along with
re-ordering the paramters. Also place NO_DIFF_CONTENT into the
DATA passed into render_commit().
(generate_urls): removed.
(generate_changelist_diffs): reorder the parameters to align with
those of generate_commit() (aesthetic; no functional change). Add
the NO_DIFF_CONTENT and skip construction of the diff generator.
(render_commit): place a large NOTE in the message when the diff
content is removed (due to length).
(_render_diffs): skip trying to output diff content when absent.
git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1917169 13f79535-47bb-0310-9956-ffa450edef68
1 file changed