Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Nov 2009 21:44:58 +0000 (UTC)
From:      "Simon L. Nielsen" <simon@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-svnadmin@freebsd.org
Subject:   svn commit: r198826 - svnadmin/hooks/scripts
Message-ID:  <200911022144.nA2Liw4K070791@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911022144.nA2Liw4K070791>