You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Ilguiz Latypov <il...@infradead.org> on 2006/03/08 18:30:49 UTC

[PATCH] configurable format of email notifications

[[[
Fix issue #2499: configurable subject line in email notifications

* tools/hook-scripts/mailer/mailer.py
  (make_subject): Use the default subject content only as part of
  the formatted subject, according to the subject_format
  parameter.
  (OutputBase.run): Accept an optional parameter which is a
  function to write the output with.
  (PropChange.generate, Lock.generate, TextCommitRenderer.render):
  Compose the body of notification based on the body_format
  parameter.
  (TextCommitRenderer._render_list,
  TextCommitRenderer._render_diffs): Accept the write function
  parameter.
  (generate_content): Pass the body_format parameter to the commit
  renderer.  Place the new line character in front of each
  section.
  (format_body): New function.
  (Config.get): Ignore erroneous keys when expanding parameters.
  The complete value will remain unexpanded.
  (__main__.usage): Indicate values expected from standard input.
  (__main__): Fall back to the raw repoditory path when path
  canonicalization is not implemented.

* tools/hook-scripts/mailer/mailer.py
  Comment on configuring subject_format and body_format.
]]]

-- 
Ilguiz