Mercurial > hg
comparison mercurial/hg.py @ 1013:2e8b8da9a86e
Deal with repos with missing timezones
author | mpm@selenic.com |
---|---|
date | Tue, 23 Aug 2005 16:19:14 -0700 |
parents | 88c15682d9b0 |
children | a9cca981c423 |
comparison
equal
deleted
inserted
replaced
1012:d74bcc61be6f | 1013:2e8b8da9a86e |
---|---|
270 desc = text[last + 2:] | 270 desc = text[last + 2:] |
271 l = text[:last].splitlines() | 271 l = text[:last].splitlines() |
272 manifest = bin(l[0]) | 272 manifest = bin(l[0]) |
273 user = l[1] | 273 user = l[1] |
274 date = l[2] | 274 date = l[2] |
275 if " " not in date: | |
276 date += " 0" # some tools used -d without a timezone | |
275 files = l[3:] | 277 files = l[3:] |
276 return (manifest, user, date, files, desc) | 278 return (manifest, user, date, files, desc) |
277 | 279 |
278 def read(self, node): | 280 def read(self, node): |
279 return self.extract(self.revision(node)) | 281 return self.extract(self.revision(node)) |