svn commit: r198826 - svnadmin/hooks/scripts

Simon L. Nielsen simon at FreeBSD.org
Mon Nov 2 21:44:59 UTC 2009


Author: simon
Date: Mon Nov  2 21:44:57 2009
New Revision: 198826
URL: http://svn.freebsd.org/changeset/base/198826

Log:
  Only print the 'Directory Properties' section if we actually have
  changed directory properties.

Modified:
  svnadmin/hooks/scripts/mailer.py

Modified: svnadmin/hooks/scripts/mailer.py
==============================================================================
--- svnadmin/hooks/scripts/mailer.py	Mon Nov  2 21:44:10 2009	(r198825)
+++ svnadmin/hooks/scripts/mailer.py	Mon Nov  2 21:44:57 2009	(r198826)
@@ -1062,7 +1062,8 @@ class TextCommitRenderer:
           text = ' unchanged'
         w('     - copied%s from r%d, %s%s\n'
           % (text, d.base_rev, d.base_path, is_dir))
-    w('Directory Properties:\n%s' % (ps))
+    if len(ps) > 0:
+      w('Directory Properties:\n%s' % (ps))
 
   def _render_diffs(self, diffs, section_header):
     """Render diffs. Write the SECTION_HEADER if there are actually


More information about the svn-src-svnadmin mailing list