aboutsummaryrefslogblamecommitdiffstats
path: root/libbe/storage/__init__.py
blob: 5d5b91862dd140c2242a1d96f039ae8c656deab5 (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 = vcs.vcs_by_name('None')
    s.repo = location
    return s

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