mercurial/archival.py
changeset 18301 49ad7030ecc4
parent 17629 331d611813ec
child 18302 16c642a6f07d
equal deleted inserted replaced
18300:745bc16ccef2 18301:49ad7030ecc4
   189         # if TZ is not configured as GMT
   189         # if TZ is not configured as GMT
   190         i.extra += struct.pack('<hhBl',
   190         i.extra += struct.pack('<hhBl',
   191                                0x5455,     # block type: "extended-timestamp"
   191                                0x5455,     # block type: "extended-timestamp"
   192                                1 + 4,      # size of this block
   192                                1 + 4,      # size of this block
   193                                1,          # "modification time is present"
   193                                1,          # "modification time is present"
   194                                self.mtime) # time of last modification (UTC)
   194                                int(self.mtime)) # last modification (UTC)
   195         self.z.writestr(i, data)
   195         self.z.writestr(i, data)
   196 
   196 
   197     def done(self):
   197     def done(self):
   198         self.z.close()
   198         self.z.close()
   199 
   199