Extract commit date for SVN
authorLaurent Bachelier <laurent@bachelier.name>
Sun, 17 Feb 2013 00:57:55 +0000 (01:57 +0100)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 22 Feb 2013 19:28:15 +0000 (14:28 -0500)
This gives the same date format as the Git extractor

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
irkerhook.py

index 09cb20441a481f18a6feedede1a6b2229fd65fe8..6e86b80693d5eb93b7d8347ee099a36ca0c2030b 100755 (executable)
@@ -303,6 +303,7 @@ class SvnExtractor(GenericExtractor):
         commit.branch = ""
         commit.rev = "r%s" % self.id
         commit.author = self.svnlook("author")
+        commit.commit_date = self.svnlook("date").partition('(')[0]
         commit.files = self.svnlook("dirs-changed").strip().replace("\n", " ")
         commit.logmsg = self.svnlook("log").strip()
         return commit