dulwich.contrib.swift.SwiftObjectStore(PackBasedObjectStore)
class documentationdulwich.contrib.swift
(View In Hierarchy)
A Swift Object Store
Allow to manage a bare Git repository from Openstack Swift. This object store only supports pack files and not loose objects.
Method | __init__ | Open a Swift object store. |
Method | packs | List with pack objects. |
Method | iter_shas | An iterator over pack's ObjectStore. |
Method | find_missing_objects | Find the missing objects required for a set of revisions. |
Method | pack_info_get | Undocumented |
Method | add_pack | Add a new pack to this object store. |
Method | add_object | Add a single object to this object store. |
Method | add_thin_pack | Read a thin pack |
Method | _update_pack_cache | Undocumented |
Method | _iter_loose_objects | Loose objects are not supported by this repository |
Method | _load_packs | Load all packs from Swift |
Method | _collect_ancestors | Collect all ancestors of heads up to (excluding) those in common. |
Method | _pack_cache_stale | Check whether the pack cache is stale. |
Method | _get_loose_object | Undocumented |
Method | _complete_thin_pack | Undocumented |
Inherited from BaseObjectStore (via PackBasedObjectStore):
Method | determine_wants_all | Undocumented |
Method | __getitem__ | Obtain an object by SHA1. |
Method | add_pack_data | Add pack data to this object store. |
Method | tree_changes | Find the differences between the contents of two trees |
Method | iter_tree_contents | Iterate the contents of a tree and all subtrees. |
Method | find_common_revisions | Find which revisions this store has in common using graphwalker. |
Method | generate_pack_contents | Iterate over the contents of a pack file. |
Method | generate_pack_data | Generate pack data objects for a set of wants/haves. |
Method | peel_sha | Peel all tags from a SHA. |
Inherited from BaseObjectStore (via PackBasedObjectStore):
Method | determine_wants_all | Undocumented |
Method | __getitem__ | Obtain an object by SHA1. |
Method | add_pack_data | Add pack data to this object store. |
Method | tree_changes | Find the differences between the contents of two trees |
Method | iter_tree_contents | Iterate the contents of a tree and all subtrees. |
Method | find_common_revisions | Find which revisions this store has in common using graphwalker. |
Method | generate_pack_contents | Iterate over the contents of a pack file. |
Method | generate_pack_data | Generate pack data objects for a set of wants/haves. |
Method | peel_sha | Peel all tags from a SHA. |
Returns | a ObjectStoreIterator or GreenThreadsObjectStoreIterator
instance if gevent is enabled |
Parameters | haves | Iterable over SHAs already in common. |
wants | Iterable over SHAs of objects to fetch. | |
progress | Simple progress function that will be called with updated progress strings. | |
get_tagged | Function that returns a dict of pointed-to sha -> tag sha for including tags. | |
get_parents | Optional function for getting the parents of a commit. | |
Returns | Iterator over (sha, path) pairs. |
Parameters | heads | commits to start from |
common | commits to end at, or empty set to walk repository completely | |
get_parents | Optional function for getting the parents of a commit. | |
Returns | a tuple (A, B) where A - all commits reachable from heads but not present in common, B - common (shared) elements that are directly reachable from heads |
Returns | Fileobject to write to and a commit function to call when the pack is finished. |