class documentation
class SwiftRepo(BaseRepo):
Undocumented
Class Method | init |
Create a new bare repository. |
Method | __init__ |
Init a Git bare Repository on top of a Swift container. |
Instance Variable | bare |
Undocumented |
Instance Variable | conf |
Undocumented |
Instance Variable | root |
Undocumented |
Instance Variable | scon |
Undocumented |
Method | _determine |
Probe the file-system to determine whether permissions can be trusted. |
Method | _put |
Put an object in a Swift container |
Instance Variable | _controldir |
Undocumented |
Inherited from BaseRepo
:
Method | __contains__ |
Check if a specific Git object or ref is present. |
Method | __delitem__ |
Remove a ref. |
Method | __getitem__ |
Retrieve a Git object by SHA1 or ref. |
Method | __setitem__ |
Set a ref. |
Method | do |
Create a new commit. |
Method | fetch |
Fetch objects into another repository. |
Method | fetch |
Fetch the missing objects required for a set of revisions. |
Method | fetch |
Fetch the pack data required for a set of revisions. |
Method | generate |
Generate pack data objects for a set of wants/haves. |
Method | get |
Retrieve the config object. |
Method | get |
Return a config stack for this repository. |
Method | get |
Retrieve the description for this repository. |
Method | get |
Retrieve a graph walker. |
Method | get |
Get a file from the control dir with a specific name. |
Method | get |
Retrieve the object with the specified SHA. |
Method | get |
Retrieve the parents of a specific commit. |
Method | get |
Get the peeled value of a ref. |
Method | get |
Get dictionary with all refs. |
Method | get |
Get the set of shallow commits. |
Method | get |
Obtain a walker for this repository. |
Method | head |
Return the SHA1 pointed at by HEAD. |
Method | open |
Open the index for this repository. |
Method | parents |
Undocumented |
Method | set |
Set the description for this repository. |
Method | update |
Update the list of shallow objects. |
Instance Variable | hooks |
Undocumented |
Instance Variable | object |
Dictionary-like object for accessing the objects |
Instance Variable | refs |
Dictionary-like object with the refs in this repository |
Method | _add |
Add or modify graftpoints |
Method | _del |
Delete a file in the control directory with the given name. |
Method | _get |
Undocumented |
Method | _get |
Determine the identity to use for new commits. |
Method | _init |
Initialize a default set of named files. |
Method | _read |
Undocumented |
Method | _remove |
Remove graftpoints |
Instance Variable | _graftpoints |
Undocumented |
Create a new bare repository.
Parameters | |
scon | a SwiftConnector instance |
conf | a ConfigParser object |
Returns | |
a SwiftRepo instance |
overrides
dulwich.repo.BaseRepo.__init__
Init a Git bare Repository on top of a Swift container.
References are managed in info/refs objects by
SwiftInfoRefsContainer
. The root attribute is the Swift
container that contain the Git bare repository.
Parameters | |
root | The container which contains the bare repo |
conf | A ConfigParser object |
Probe the file-system to determine whether permissions can be trusted.
Returns: True if permissions can be trusted, False otherwise.
overrides
dulwich.repo.BaseRepo._put_named_file
Put an object in a Swift container
Parameters | |
filename | the path to the object to put on Swift |
contents | the content as bytestring |