Abstract bug repository data storage to easily support multiple backends.
Methods
| append | |
| branch_len | |
| count | |
| extend | |
| has_descendant | |
| index | |
| insert | |
| pop | |
| remove | |
| reverse | |
| sort | |
| thread | |
| traverse |
This class declares all the methods required by a Storage interface. This implementation just keeps the data in a dictionary and uses pickle for persistent storage.
Methods
| add | |
| ancestors | |
| children | |
| connect | |
| destroy | |
| disconnect | |
| exists | |
| get | |
| init | |
| is_readable | |
| is_writeable | |
| recursive_remove | |
| remove | |
| set | |
| storage_version | |
| version |
Add an entry
Return a list of the specified entry’s ancestors’ ids.
Return a list of specified entry’s children’s ids.
Open a connection to the repository.
Remove the storage repository.
Close the connection to the repository.
Check an entry’s existence
Get contents of and entry as they were in a given revision. revision==None specifies the current revision.
If there is no id, return default, unless default is not given, in which case raise InvalidID.
Create a new storage repository.
Remove an entry and all its decendents.
Remove an entry.
Set the entry contents.
Return the storage format for this backend.
Return a version string for this backend.
This class declares all the methods required by a Storage interface that supports versioning. This implementation just keeps the data in a list and uses pickle for persistent storage.
Methods
| add | |
| ancestors | |
| changed | |
| children | |
| commit | |
| connect | |
| destroy | |
| disconnect | |
| exists | |
| get | |
| init | |
| is_readable | |
| is_writeable | |
| recursive_remove | |
| remove | |
| revision_id | |
| set | |
| storage_version | |
| version |
Return a tuple of lists of ids (new, modified, removed) from the specified revision to the current situation.
Commit the current repository, with a commit message string summary and body. Return the name of the new revision.
If allow_empty == False (the default), raise EmptyCommit if there are no changes to commit.
Return the name of the <index>th revision. The choice of which branch to follow when crossing branches/merges is not defined. Revision indices start at 1; ID 0 is the blank repository.
Return None if index==None.
If the specified revision does not exist, raise InvalidRevision.