Changeset 37 in tailor for vcpx/svn.py
- Timestamp:
- 06/23/04 16:05:28 (9 years ago)
- Hash name:
- 20040623140528-97f81-fea4b7b34c20f05cf8f8c1d44e7e3d4488e94754
- File:
-
- 1 edited
-
vcpx/svn.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/svn.py
r36 r37 133 133 from xml.sax.handler import ContentHandler 134 134 from changes import ChangesetEntry, Changeset 135 from datetime import datetime 135 136 136 137 class SvnXMLLogHandler(ContentHandler): … … 161 162 # Sort the paths to make tests easier 162 163 self.current['entries'].sort() 164 svndate = self.current['date'] 165 # 2004-04-16T17:12:48.000000Z 166 y,m,d = map(int, svndate[:10].split('-')) 167 hh,mm,ss = map(int, svndate[11:19].split(':')) 168 ms = int(svndate[20:-1]) 169 timestamp = datetime(y, m, d, hh, mm, ss, ms) 163 170 self.changesets.append(Changeset(self.current['revision'], 164 self.current['date'],171 timestamp, 165 172 self.current['author'], 166 173 self.current['msg'],
Note: See TracChangeset
for help on using the changeset viewer.
