aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2013-02-17 01:57:55 +0100
committerEric S. Raymond <esr@thyrsus.com>2013-02-22 14:28:15 -0500
commit9fef2149caebaaffd74418ef00999bf50674ce78 (patch)
treea27844973ff6cf4600a8dc006a710bc82d6cabc1
parentExtract commit dates (diff)
downloadirker-9fef2149caebaaffd74418ef00999bf50674ce78.tar.xz
Extract commit date for SVN
This gives the same date format as the Git extractor Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
-rwxr-xr-xirkerhook.py1
1 files changed, 1 insertions, 0 deletions
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