comparison mercurial/commands.py @ 1317:008d3666bf41

Print commit time/date from perspective of committer. Previously, it was printed in the time zone of the reader, but with the committer's time zone offset. It is now consistent.
author Bryan O'Sullivan <bos@serpentine.com>
date Thu, 22 Sep 2005 21:15:57 -0700
parents 32f6cae83db7
children 3f4f76012bc9
comparison
equal deleted inserted replaced
1316:b650bfdfc7ee 1317:008d3666bf41
327 # a conversion tool was sticking non-integer offsets into repos 327 # a conversion tool was sticking non-integer offsets into repos
328 try: 328 try:
329 tz = int(tz) 329 tz = int(tz)
330 except ValueError: 330 except ValueError:
331 tz = 0 331 tz = 0
332 date = time.asctime(time.localtime(float(t))) + " %+05d" % (int(tz)/-36) 332 date = time.asctime(time.gmtime(float(t) - tz)) + " %+05d" % (int(tz)/-36)
333 333
334 parents = [(log.rev(p), ui.verbose and hex(p) or short(p)) 334 parents = [(log.rev(p), ui.verbose and hex(p) or short(p))
335 for p in log.parents(changenode) 335 for p in log.parents(changenode)
336 if ui.debugflag or p != nullid] 336 if ui.debugflag or p != nullid]
337 if not ui.debugflag and len(parents) == 1 and parents[0][0] == rev-1: 337 if not ui.debugflag and len(parents) == 1 and parents[0][0] == rev-1: