def checkpoint_model(self, checkpoint_id, path): if checkpoint_id == '--': return dict( id=checkpoint_id, last_modified=utcnow(), ) out = self._git(['log', '-1', '--date=iso', '--format=%ad', checkpoint_id], path, include_file=False) return dict( id = checkpoint_id, last_modified = parse_date(out), )
def checkpoint_model(self, checkpoint_id, path): if checkpoint_id == '--': return dict( id=checkpoint_id, last_modified=utcnow(), ) out = self._git( ['log', '-1', '--date=iso', '--format=%ad', checkpoint_id], path, include_file=False) return dict( id=checkpoint_id, last_modified=parse_date(out), )
def create_checkpoint(self, contents_mgr, path): """Create a checkpoint.""" return dict(id=path, last_modified=tz.utcnow())
def create_checkpoint(self, contents_mgr, path): """Create a checkpoint.""" return dict( id=path, last_modified=tz.utcnow() )