aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/__init__.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-13 06:19:23 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-13 06:19:23 -0500
commit4d057dab603f42ec40b911dbee6792dcf107bd14 (patch)
tree9a73459aa160e3c96f4893b132543f412ca6e97f /libbe/storage/__init__.py
parentdff6bd9bf89ca80e2265696a478e540476718c9c (diff)
downloadbugseverywhere-4d057dab603f42ec40b911dbee6792dcf107bd14.tar.gz
Converted libbe.storage.vcs.base to new Storage format.
Diffstat (limited to 'libbe/storage/__init__.py')
-rw-r--r--libbe/storage/__init__.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/libbe/storage/__init__.py b/libbe/storage/__init__.py
index 9c954ee..5d5b918 100644
--- a/libbe/storage/__init__.py
+++ b/libbe/storage/__init__.py
@@ -5,9 +5,21 @@ 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,
- NotWriteable, NotReadable, EmptyCommit]
+ InvalidDirectory, NotWriteable, NotReadable,
+ EmptyCommit, get_storage]