aboutsummaryrefslogblamecommitdiffstats
path: root/libbe/storage/__init__.py
blob: c58ec34d1f70c49350d2e287dcf2fb9ce183ef85 (plain) (tree)
1
2
3
4
5
6
7
8






                                      
                                        



                                




                                                          
                                


                     
                                                       

                                                       
# Copyright

import base

ConnectionError = base.ConnectionError
InvalidID = base.InvalidID
InvalidRevision = base.InvalidRevision
InvalidDirectory = base.InvalidDirectory
NotWriteable = base.NotWriteable
NotReadable = base.NotReadable
EmptyCommit = base.EmptyCommit

def get_storage(location):
    """
    Return a Storage instance from a repo location string.
    """
    import vcs
    s = vcs.detect_vcs(location)
    s.repo = location
    return s

__all__ = [ConnectionError, InvalidID, InvalidRevision,
           InvalidDirectory, NotWriteable, NotReadable,
           EmptyCommit, get_storage]