Converted libbe.storage.vcs.base to new Storage format.
[be.git] / libbe / storage / __init__.py
1 # Copyright
2
3 import base
4
5 ConnectionError = base.ConnectionError
6 InvalidID = base.InvalidID
7 InvalidRevision = base.InvalidRevision
8 InvalidDirectory = base.InvalidDirectory
9 NotWriteable = base.NotWriteable
10 NotReadable = base.NotReadable
11 EmptyCommit = base.EmptyCommit
12
13 def get_storage(location):
14     """
15     Return a Storage instance from a repo location string.
16     """
17     import vcs
18     #s = vcs.detect_vcs(location)
19     s = vcs.vcs_by_name('None')
20     s.repo = location
21     return s
22
23 __all__ = [ConnectionError, InvalidID, InvalidRevision,
24            InvalidDirectory, NotWriteable, NotReadable,
25            EmptyCommit, get_storage]