[CalendarServer-changes] [6214] CalendarServer/trunk/contrib/performance/svn-committime

source_changes at macosforge.org source_changes at macosforge.org
Tue Aug 31 09:37:04 PDT 2010


Revision: 6214
          http://trac.macosforge.org/projects/calendarserver/changeset/6214
Author:   exarkun at twistedmatrix.com
Date:     2010-08-31 09:37:03 -0700 (Tue, 31 Aug 2010)
Log Message:
-----------
Change this to accept a revision number instead of assuming the current wc revision number is what's interesting

Modified Paths:
--------------
    CalendarServer/trunk/contrib/performance/svn-committime

Modified: CalendarServer/trunk/contrib/performance/svn-committime
===================================================================
--- CalendarServer/trunk/contrib/performance/svn-committime	2010-08-31 16:07:50 UTC (rev 6213)
+++ CalendarServer/trunk/contrib/performance/svn-committime	2010-08-31 16:37:03 UTC (rev 6214)
@@ -2,5 +2,9 @@
 
 import sys, datetime
 import pysvn
-print datetime.datetime.fromtimestamp(pysvn.Client().info(sys.argv[1])['commit_time'])
+wc = sys.argv[1]
+revision = int(sys.argv[2])
+client = pysvn.Client()
+[entry] = client.log(wc, pysvn.Revision(pysvn.opt_revision_kind.number, revision))
+print datetime.datetime.fromtimestamp(entry['date'])
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100831/3c2c72a9/attachment.html>


More information about the calendarserver-changes mailing list