graviti.manager.common
#
Common tools.
Module Contents#
Classes#
This class defines the default value of parameters from methods in manager. |
Functions#
|
Check if the commit for the HEAD of the current dataset is up-to-date. |
Attributes#
- class graviti.manager.common.DefaultValue(name)[source]#
This class defines the default value of parameters from methods in manager.
- Parameters
name (str) – The name of the default value.
- exception graviti.manager.common.StatusWarning(revision_type, name)[source]#
Bases:
Warning
This class defines the warning that the commit of dataset branch or tag is not up-to-date.
- Parameters
revision_type (str) – The type of current dataset revision.
name (str) – The name of current dataset revision.
- graviti.manager.common.check_head_status(head, remote_revision, remote_commit_id)[source]#
Check if the commit for the HEAD of the current dataset is up-to-date.
- Parameters
head (graviti.manager.commit.Commit) – The current revision of the local dataset.
remote_revision (str) – The revision of the remote dataset in server.
remote_commit_id (Optional[str]) – The commit id of the remote dataset in server.
- Return type
None