Rev 16: use standard function for time conversions in file:///home/jelmer/bzr/bzrsvnserve/

Jelmer Vernooij jelmer at samba.org
Mon Jan 22 15:38:57 GMT 2007


------------------------------------------------------------
revno: 16
revision-id: jelmer at samba.org-20070122153846-bw0hexrt5t91sks5
parent: jelmer at samba.org-20070122152711-agvhumgzk6qvev1m
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: bzrsvnserve
timestamp: Mon 2007-01-22 16:38:46 +0100
message:
  use standard function for time conversions
modified:
  svnserver.py                   svnserver.py-20061015150253-0jjovnw1ax00rjlb-1
=== modified file 'svnserver.py'
--- a/svnserver.py	2007-01-22 15:27:11 +0000
+++ b/svnserver.py	2007-01-22 15:38:46 +0000
@@ -19,12 +19,12 @@
 from bzrlib.trace import mutter
 
 import os
+import time
 
 from marshall import marshall, unmarshall, literal, MarshallError
 
 SVN_MAJOR_VERSION = 1
 SVN_MINOR_VERSION = 2
-import svn.core
 
 class SVNServer:
     def __init__(self, rootdir, recv_fn, send_fn):
@@ -58,9 +58,8 @@
     def log(self, target_path, start_rev, end_rev, changed_paths, 
             strict_node, limit=None):
         def send_revision(revno, rev):
-            #FIXME: Use private function rather than svn.core.*
             self.send_msg([[], revno, [rev.committer], 
-                          [svn.core.svn_time_to_cstring(rev.timestamp)], 
+               [time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(rev.timestamp)],
                           [rev.message]])
         self.send_success([], "")
         rev = start_rev[0]




More information about the bazaar-commits mailing list