comparison hgfastimport/hgimport.py @ 59:c82b6a84884f

Convert timezones correctly.
author Greg Ward <gward@intelerad.com>
date Mon, 01 Aug 2011 21:24:29 -0400
parents c370e587f483
children efc96910ddf2 ae32828c68d7
comparison
equal deleted inserted replaced
58:c370e587f483 59:c82b6a84884f
331 heads.append(cmd.id) # at end means this is tipmost 331 heads.append(cmd.id) # at end means this is tipmost
332 self.branchmap[branch] = heads 332 self.branchmap[branch] = heads
333 self.ui.debug("processed commit %s\n" % cmd) 333 self.ui.debug("processed commit %s\n" % cmd)
334 334
335 def convert_date(self, c): 335 def convert_date(self, c):
336 res = (int(c[2]), int(c[3])) 336 res = (int(c[2]), -int(c[3]))
337 #print c, res 337 #print c, res
338 #print type((0, 0)), type(res), len(res), type(res) is type((0, 0)) 338 #print type((0, 0)), type(res), len(res), type(res) is type((0, 0))
339 #if type(res) is type((0, 0)) and len(res) == 2: 339 #if type(res) is type((0, 0)) and len(res) == 2:
340 # print "go for it" 340 # print "go for it"
341 #return res 341 #return res