Rev 2: * Merge messages in the changed-NEWS file case. in http://people.canonical.com/~robertc/baz2.0/plugins/commitfromnews/trunk
Robert Collins
robertc at robertcollins.net
Sat Feb 27 12:39:03 GMT 2010
At http://people.canonical.com/~robertc/baz2.0/plugins/commitfromnews/trunk
------------------------------------------------------------
revno: 2
revision-id: robertc at robertcollins.net-20100227123857-5puwvng9iddlw3ob
parent: robertc at robertcollins.net-20100227121725-quxul8rc0tkv552n
committer: Robert Collins <robertc at robertcollins.net>
branch nick: trunk
timestamp: Sat 2010-02-27 23:38:57 +1100
message:
* Merge messages in the changed-NEWS file case.
=== modified file 'NEWS'
--- a/NEWS 2010-02-27 12:17:25 +0000
+++ b/NEWS 2010-02-27 12:38:57 +0000
@@ -11,3 +11,4 @@
* Created plugin, basic functionality of looking for NEWS and including the
NEWS diff.
+* Merge messages in the changed-NEWS file case.
=== modified file 'committemplate.py'
--- a/committemplate.py 2010-02-27 12:17:25 +0000
+++ b/committemplate.py 2010-02-27 12:38:57 +0000
@@ -85,7 +85,7 @@
if tag == 'delete':
continue
new_lines.extend(new[j1:j2])
- return ''.join(new_lines)
+ return self.merge_message(''.join(new_lines))
def merge_message(self, new_message):
"""Merge new_message with self.message.
More information about the bazaar-commits
mailing list