equal
deleted
inserted
replaced
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): |