class documentation

class SwiftRepo(BaseRepo):

View In Hierarchy

Undocumented

Class Method init_bare 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_file_mode Probe the file-system to determine whether permissions can be trusted.
Method _put_named_file 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_commit Create a new commit.
Method fetch Fetch objects into another repository.
Method fetch_objects Fetch the missing objects required for a set of revisions.
Method fetch_pack_data Fetch the pack data required for a set of revisions.
Method generate_pack_data Generate pack data objects for a set of wants/haves.
Method get_config Retrieve the config object.
Method get_config_stack Return a config stack for this repository.
Method get_description Retrieve the description for this repository.
Method get_graph_walker Retrieve a graph walker.
Method get_named_file Get a file from the control dir with a specific name.
Method get_object Retrieve the object with the specified SHA.
Method get_parents Retrieve the parents of a specific commit.
Method get_peeled Get the peeled value of a ref.
Method get_refs Get dictionary with all refs.
Method get_shallow Get the set of shallow commits.
Method get_walker Obtain a walker for this repository.
Method head Return the SHA1 pointed at by HEAD.
Method open_index Open the index for this repository.
Method parents_provider Undocumented
Method set_description Set the description for this repository.
Method update_shallow Update the list of shallow objects.
Instance Variable hooks Undocumented
Instance Variable object_store Dictionary-like object for accessing the objects
Instance Variable refs Dictionary-like object with the refs in this repository
Method _add_graftpoints Add or modify graftpoints
Method _del_named_file Delete a file in the control directory with the given name.
Method _get_object Undocumented
Method _get_user_identity Determine the identity to use for new commits.
Method _init_files Initialize a default set of named files.
Method _read_heads Undocumented
Method _remove_graftpoints Remove graftpoints
Instance Variable _graftpoints Undocumented
@classmethod
def init_bare(cls, scon, conf):

Create a new bare repository.

Parameters
scona SwiftConnector instance
confa ConfigParser object
Returns
a SwiftRepo instance
def __init__(self, root, conf):

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
rootThe container which contains the bare repo
confA ConfigParser object
bare: bool =

Undocumented

conf =

Undocumented

root =

Undocumented

scon =

Undocumented

def _determine_file_mode(self):

Probe the file-system to determine whether permissions can be trusted.

Returns: True if permissions can be trusted, False otherwise.

def _put_named_file(self, filename, contents):

Put an object in a Swift container

Parameters
filenamethe path to the object to put on Swift
contentsthe content as bytestring
_controldir =

Undocumented