Make SVN extractor strip trailing blank lines.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 14 Oct 2012 04:16:02 +0000 (00:16 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 14 Oct 2012 04:16:02 +0000 (00:16 -0400)
irkerhook.py

index af5a1562b2ad43860ff73dc3594651cd0c577b35..8e1a88ecfc465cccbd0c7317ac10493e4d9e0345 100755 (executable)
@@ -296,7 +296,7 @@ class SvnExtractor(GenericExtractor):
         commit.rev = "r%s" % self.id
         commit.author = self.svnlook("author")
         commit.files = self.svnlook("dirs-changed").strip().replace("\n", " ")
-        commit.logmsg = self.svnlook("log")
+        commit.logmsg = self.svnlook("log").strip() + "\n"
         return commit
     def svnlook(self, info):
         return do("svnlook %s %s --revision %s" % (shellquote(info), shellquote(self.repository), shellquote(self.id)))