Changeset 349


Ignore:
Timestamp:
23-05-08 11:08:36 (5 years ago)
Author:
thomas
Message:

modified patch by: Marc-Andre Lureau <marcandre.lureau@…>

  • moap/command/cl.py: Change ChangeLog? semantics by adding a .parse() method. Detect when the default ChangeLog? entry has not been changed, and warn about it.
  • moap/test/ChangeLog/ChangeLog.notedited:
  • moap/test/test_commands_cl.py:
  • moap/test/Makefile.am: Add a test. Fixes #239.
Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r348 r349  
    1 2008-05-23  Please set CHANGE_LOG_NAME or REAL_NAME environment variable  <Please set CHANGE_LOG_EMAIL_ADDRESS or EMAIL_ADDRESS environment variable> 
    2  
    3         reviewed by: <delete if not using a buddy> 
    4         patch by: <delete if not someone else's patch> 
    5  
    6         * moap/command/cl.py: 
     12008-05-23  Thomas Vander Stichele  <thomas at apestaart dot org> 
     2 
     3        modified patch by: Marc-Andre Lureau  <marcandre.lureau@gmail.com> 
     4 
     5        * moap/command/cl.py: 
     6          Change ChangeLog semantics by adding a .parse() method. 
     7          Detect when the default ChangeLog entry has not been changed, 
     8          and warn about it. 
     9        * moap/test/ChangeLog/ChangeLog.notedited: 
    710        * moap/test/test_commands_cl.py: 
    8  
    9 2008-05-23  Thomas Vander Stichele  <Please set CHANGE_LOG_EMAIL_ADDRESS or EMAIL_ADDRESS environment variable> 
    10  
    11         reviewed by: <delete if not using a buddy> 
    12         patch by: <delete if not someone else's patch> 
    13  
    14         * moap/command/cl.py: 
    15         * moap/test/test_commands_cl.py: 
    16  
    17 2008-05-23  Thomas Vander Stichele  <thomas at apestaart dot org> 
    18  
    19         reviewed by: <delete if not using a buddy> 
    20         patch by: <delete if not someone else's patch> 
    21  
    22         * moap/command/cl.py: 
    23         * moap/test/test_commands_cl.py: 
     11        * moap/test/Makefile.am: 
     12          Add a test. 
     13          Fixes #239. 
    2414 
    25152008-05-23  Thomas Vander Stichele  <thomas at apestaart dot org> 
  • trunk/moap/command/cl.py

    r348 r349  
    311311        cl.parse(False) 
    312312        entry = cl.getEntry(0) 
    313         if isinstance(entry, ChangeEntry) and entry.notEdited != []: 
    314             self.stderr.write('ChangeLog still contains default templates value: %r.\n' % entry.notEdited) 
     313        if isinstance(entry, ChangeEntry) and entry.notEdited: 
     314            self.stderr.write( 
     315                'ChangeLog entry has not been updated properly:') 
     316            self.stderr.write("\n - ".join(['', ] + entry.notEdited) + "\n") 
     317            self.stderr.write("Please fix the entry and try again.") 
     318            return 3 
    315319        self.debug('Commiting files %r' % entry.files) 
    316320        ret = v.commit([clName, ] + entry.files, entry.text) 
  • trunk/moap/test/Makefile.am

    r346 r349  
    2828        ChangeLog/ChangeLog.gst-plugins-base.271 \ 
    2929        ChangeLog/ChangeLog.gst-plugins-good \ 
     30        ChangeLog/ChangeLog.notedited \ 
    3031        doap/mach.doap \ 
    3132        ical/mach.ics \ 
Note: See TracChangeset for help on using the changeset viewer.