[Pkg-bazaar-commits] ./bzr-builddeb/trunk r366: Don't add all changes from changelog to commit message.

James Westby james.westby at canonical.com
Tue Aug 25 20:20:10 UTC 2009


------------------------------------------------------------
revno: 366
committer: James Westby <james.westby at canonical.com>
branch nick: trunk
timestamp: Tue 2009-08-25 21:20:10 +0100
message:
  Don't add all changes from changelog to commit message.
  
  Only add the "changes" sections, not the headers and trailers.
modified:
  __init__.py
-------------- next part --------------
=== modified file '__init__.py'
--- a/__init__.py	2009-08-24 17:33:44 +0000
+++ b/__init__.py	2009-08-25 20:20:10 +0000
@@ -95,7 +95,9 @@
         for group in sequencematcher(None, old_text,
                 new_text).get_grouped_opcodes(0):
             j1, j2 = group[0][3], group[-1][4]
-            changes += new_text[j1:j2]
+            for line in new_text[j1:j2]:
+                if line.startswith("  "):
+                    changes.append(line)
     if not changes:
         return start_message
     from bzrlib.plugins.builddeb.util import strip_changelog_message



More information about the Pkg-bazaar-commits mailing list