@classmethod
def from_revision(cls, client, path, revision='HEAD', **kwargs):
    """Return dependency from given path and revision."""
    from renku.core.models.entities import Entity
    return cls(entity=Entity.from_revision(client, path, revision), **kwargs)
