[Checkins] SVN: zope.z2release/trunk/ Added support for inline comments in the versions section.

Hanno Schlichting hannosch at hannosch.eu
Sun Jun 13 13:36:44 EDT 2010


Log message for revision 113424:
  Added support for inline comments in the versions section.
  

Changed:
  U   zope.z2release/trunk/CHANGES.txt
  U   zope.z2release/trunk/zope/z2release/cli.py

-=-
Modified: zope.z2release/trunk/CHANGES.txt
===================================================================
--- zope.z2release/trunk/CHANGES.txt	2010-06-13 17:32:46 UTC (rev 113423)
+++ zope.z2release/trunk/CHANGES.txt	2010-06-13 17:36:44 UTC (rev 113424)
@@ -4,6 +4,8 @@
 0.3 - unreleased
 ----------------
 
+- Added support for inline comments in the versions section.
+
 - Readme style fixes.
 
 0.2 - 2010/04/05

Modified: zope.z2release/trunk/zope/z2release/cli.py
===================================================================
--- zope.z2release/trunk/zope/z2release/cli.py	2010-06-13 17:32:46 UTC (rev 113423)
+++ zope.z2release/trunk/zope/z2release/cli.py	2010-06-13 17:36:44 UTC (rev 113424)
@@ -87,6 +87,8 @@
     write_index('Zope2', version, dirname)
     for package in CP.options('versions'):
         version = CP.get('versions', package)
+        if '#' in version:
+            version = version.split('#')[0].strip()
         write_index(package, version, dirname)
 
 if __name__ == '__main__':



More information about the checkins mailing list