Changeset 1684 in tailor for vcpx/repository/darcs/target.py
- Timestamp:
- 03/13/11 16:06:26 (14 months ago)
- Hash name:
- 20110313150626-7a6fb-910e0e5f49b347fd06614885ad1a62e25e883d3c
- File:
-
- 1 edited
-
vcpx/repository/darcs/target.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/repository/darcs/target.py
r1680 r1684 111 111 112 112 logmessage.append(date.astimezone(UTC).strftime('%Y/%m/%d %H:%M:%S UTC')) 113 logmessage.append(author) 113 # Paranoid protection against newlines in author 114 logmessage.append(''.join(author.split('\n'))) 115 # Patchname cannot start with a newline 116 patchname = patchname.lstrip('\n') 114 117 if patchname: 115 118 logmessage.append(patchname) … … 122 125 while changelog.startswith('\n'): 123 126 changelog = changelog[1:] 127 if not changelog: 128 # No patch name and no changelog: force non empty one 129 logmessage.append(' ') 124 130 if changelog: 125 131 logmessage.append(changelog) 126 else:127 logmessage.append('Unnamed patch')128 132 129 133 cmd = self.repository.command("record", "--all", "--pipe", "--ignore-times")
Note: See TracChangeset
for help on using the changeset viewer.
