/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to object_store.py

Rename converter -> object_store, provide utility function for getting ObjectStore's.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    )
42
42
 
43
43
 
 
44
def get_object_store(repo, mapping=None):
 
45
    git = getattr(repo, "_git", None)
 
46
    if git is not None:
 
47
        return git.object_store
 
48
    return BazaarObjectStore(repo, mapping)
 
49
 
 
50
 
44
51
class BazaarObjectStore(object):
45
52
    """A Git-style object store backed onto a Bazaar repository."""
46
53