##// END OF EJS Templates
Deal with non-integer date offsets generated by some tools
mpm@selenic.com -
r973:a51991eb default
parent child Browse files
Show More
@@ -223,6 +223,11 b' def show_changeset(ui, repo, rev=0, chan'
223 changes = changelog.read(changenode)
223 changes = changelog.read(changenode)
224
224
225 t, tz = changes[2].split(' ')
225 t, tz = changes[2].split(' ')
226 # a conversion tool was sticking non-integer offsets into repos
227 try:
228 tz = int(tz)
229 except ValueError:
230 tz = 0
226 date = time.asctime(time.localtime(float(t))) + " %+05d" % (int(tz)/-36)
231 date = time.asctime(time.localtime(float(t))) + " %+05d" % (int(tz)/-36)
227
232
228 parents = [(log.rev(p), ui.verbose and hg.hex(p) or hg.short(p))
233 parents = [(log.rev(p), ui.verbose and hg.hex(p) or hg.short(p))
General Comments 0
You need to be logged in to leave comments. Login now