memote.suite.results.history_manager

Provide a history manager that integrates with a git repository.

Module Contents

Classes

HistoryManager Manage access to results in the commit history of a git repository.
class memote.suite.results.history_manager.HistoryManager(repository, manager, **kwargs)[source]

Bases: object

Manage access to results in the commit history of a git repository.

Attributes:
manager : memote.RepoResultManager

The manager for accessing individual results.

current : str

The name of the currently active branch.

build_branch_structure(self, model, skip)[source]

Inspect and record the repo’s branches and their history.

iter_branches(self)[source]

Iterate over branch names and their commit histories.

iter_commits(self)[source]

Iterate over all commit hashes in the repository.

load_history(self, model, skip=('gh-pages', ))[source]

Load the entire results history into memory.

Could be a bad idea in a far future.

get_result(self, commit, default=None)[source]

Return an individual result from the history if it exists.

__contains__(self, commit)[source]

Test for the existence of a result for a commit.