mercurial/obsolete.py
changeset 23002 2920a96f5839
parent 22954 32f15b361f36
child 23497 5817f71c2336
equal deleted inserted replaced
23001:4df9b5e62f70 23002:2920a96f5839
   200 def _fm0encodeonemarker(marker):
   200 def _fm0encodeonemarker(marker):
   201     pre, sucs, flags, metadata, date, parents = marker
   201     pre, sucs, flags, metadata, date, parents = marker
   202     if flags & usingsha256:
   202     if flags & usingsha256:
   203         raise util.Abort(_('cannot handle sha256 with old obsstore format'))
   203         raise util.Abort(_('cannot handle sha256 with old obsstore format'))
   204     metadata = dict(metadata)
   204     metadata = dict(metadata)
   205     metadata['date'] = '%d %i' % date
   205     time, tz = date
       
   206     metadata['date'] = '%r %i' % (time, tz)
   206     if parents is not None:
   207     if parents is not None:
   207         if not parents:
   208         if not parents:
   208             # mark that we explicitly recorded no parents
   209             # mark that we explicitly recorded no parents
   209             metadata['p0'] = ''
   210             metadata['p0'] = ''
   210         for i, p in enumerate(parents):
   211         for i, p in enumerate(parents):