Changeset 326 in tailor


Ignore:
Timestamp:
05/24/05 15:35:24 (8 years ago)
Author:
lele@…
Hash name:
20050524133524-97f81-53184f2155320eec10f3990977aead2b39d489c1
Message:

Catch the case of empty upstream changelog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/target.py

    r317 r326  
    8585            self.__registerAppliedChangeset(changeset) 
    8686        else: 
    87             from os.path import split 
    88  
    89             loglines = changeset.log.split('\n') 
    90             if len(loglines)>1: 
    91                 firstlogline = loglines[0] 
    92                 remaininglog = '\n'.join(loglines[1:]) 
     87            if changeset.log == '': 
     88                firstlogline = 'Empty log message' 
     89                remaininglog = '' 
    9390            else: 
    94                 firstlogline = changeset.log 
    95                 remaininglog = '' 
     91                loglines = changeset.log.split('\n') 
     92                if len(loglines)>1: 
     93                    firstlogline = loglines[0] 
     94                    remaininglog = '\n'.join(loglines[1:]) 
     95                else: 
     96                    firstlogline = changeset.log 
     97                    remaininglog = '' 
     98                     
    9699            remark = self.PATCH_NAME_FORMAT % { 
    97100                'module': module, 
Note: See TracChangeset for help on using the changeset viewer.