Пример #1
0
 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),
     )
Пример #2
0
    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),
        )
Пример #3
0
 def create_checkpoint(self, contents_mgr, path):
     """Create a checkpoint."""
     return dict(id=path, last_modified=tz.utcnow())
Пример #4
0
 def create_checkpoint(self, contents_mgr, path):
     """Create a checkpoint."""
     return dict(
         id=path,
         last_modified=tz.utcnow()
     )