Changeset 1508 in tailor


Ignore:
Timestamp:
05/19/08 17:54:41 (5 years ago)
Author:
lele@…
Hash name:
20080519155441-97f81-9eeac25e97da08fa6d12ac408d543dfe42174a73
Message:

Fix #153: handle changelogs starting with newlines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/repository/darcs/target.py

    r1390 r1508  
    6161        if patchname: 
    6262            logmessage.append(patchname) 
     63        else: 
     64            # This is possibile also when REMOVE_FIRST_LOG_LINE is in 
     65            # effect and the changelog starts with newlines: discard 
     66            # those, otherwise darcs will complain about invalid patch 
     67            # name 
     68            if changelog and changelog.startswith('\n'): 
     69                while changelog.startswith('\n'): 
     70                    changelog = changelog[1:] 
    6371        if changelog: 
    6472            logmessage.append(changelog) 
    65         if not patchname and not changelog: 
     73 
     74        if not logmessage: 
    6675            logmessage.append('Unnamed patch') 
    6776 
Note: See TracChangeset for help on using the changeset viewer.