class documentation
class MaintenanceTask(ABC):
Known subclasses: dulwich.maintenance.CommitGraphTask, dulwich.maintenance.GcTask, dulwich.maintenance.IncrementalRepackTask, dulwich.maintenance.LooseObjectsTask, dulwich.maintenance.PackRefsTask, dulwich.maintenance.PrefetchTask
Constructor: MaintenanceTask(repo, auto, progress)
Base class for maintenance tasks.
| Method | __init__ |
Initialize maintenance task. |
| Method | default |
Return default enabled state for this task. |
| Method | is |
Check if task is enabled in repository configuration. |
| Method | run |
Run the maintenance task. |
| Class Variable | name |
Undocumented |
| Instance Variable | auto |
Undocumented |
| Instance Variable | progress |
Undocumented |
| Instance Variable | repo |
Undocumented |
overridden in
dulwich.maintenance.CommitGraphTask, dulwich.maintenance.GcTaskReturn default enabled state for this task.
| Returns | |
bool | True if task should be enabled by default |
overridden in
dulwich.maintenance.CommitGraphTask, dulwich.maintenance.GcTask, dulwich.maintenance.IncrementalRepackTask, dulwich.maintenance.LooseObjectsTask, dulwich.maintenance.PackRefsTask, dulwich.maintenance.PrefetchTaskRun the maintenance task.
| Returns | |
bool | True if successful, False otherwise |