Mercurial > hg
comparison hgext/convert/monotone.py @ 8125:da9f3866c637
convert/mtn: mtn does not record timezones, mark dates as UTC (issue1624)
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Thu, 23 Apr 2009 08:45:44 +0200 |
parents | d883bfbd2e60 |
children | 17ab4dab50a6 |
comparison
equal
deleted
inserted
replaced
8124:d883bfbd2e60 | 8125:da9f3866c637 |
---|---|
105 name, value = m.groups() | 105 name, value = m.groups() |
106 value = value.replace(r'\"', '"') | 106 value = value.replace(r'\"', '"') |
107 value = value.replace(r'\\', '\\') | 107 value = value.replace(r'\\', '\\') |
108 certs[name] = value | 108 certs[name] = value |
109 # Monotone may have subsecond dates: 2005-02-05T09:39:12.364306 | 109 # Monotone may have subsecond dates: 2005-02-05T09:39:12.364306 |
110 certs["date"] = certs["date"].split('.')[0] | 110 # and all times are stored in UTC |
111 certs["date"] = certs["date"].split('.')[0] + " UTC" | |
111 return certs | 112 return certs |
112 | 113 |
113 # implement the converter_source interface: | 114 # implement the converter_source interface: |
114 | 115 |
115 def getheads(self): | 116 def getheads(self): |