From: Laurent Bachelier Date: Sun, 17 Feb 2013 00:57:55 +0000 (+0100) Subject: Extract commit date for SVN X-Git-Tag: 1.18~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9fef2149caebaaffd74418ef00999bf50674ce78;p=irker.git Extract commit date for SVN This gives the same date format as the Git extractor Signed-off-by: Eric S. Raymond --- diff --git a/irkerhook.py b/irkerhook.py index 09cb204..6e86b80 100755 --- a/irkerhook.py +++ b/irkerhook.py @@ -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