aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/vcs
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-01 16:54:30 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-01 16:54:30 -0500
commit97eabcc3657bdc6511baebd79b059ae1589c7e87 (patch)
tree32b896bed9ea94c5fda2e2a68345916dd8c5cea7 /libbe/storage/vcs
parent4d4283ecd654f1efb058cd7f7dba6be88b70ee92 (diff)
parent286c686cb50eb8240fa9b15365d61783279b86a2 (diff)
downloadbugseverywhere-97eabcc3657bdc6511baebd79b059ae1589c7e87.tar.gz
Merged be.html-storage
Added HTTP storage backend and server Serve a local repo on http://localhost:8000 be --repo REPO serve Then connect from other be calls, for example be --repo http://localhost:8000 list
Diffstat (limited to 'libbe/storage/vcs')
-rw-r--r--libbe/storage/vcs/base.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/libbe/storage/vcs/base.py b/libbe/storage/vcs/base.py
index 39f5082..8390cbc 100644
--- a/libbe/storage/vcs/base.py
+++ b/libbe/storage/vcs/base.py
@@ -800,7 +800,7 @@ os.listdir(self.get_path("bugs")):
try:
path = self._cached_path_id.path(id)
except InvalidID, e:
- raise e
+ raise
if not os.path.exists(path):
raise InvalidID(id)
if os.path.isdir(path):
@@ -877,7 +877,11 @@ os.listdir(self.get_path("bugs")):
/.be
or None if none of those files exist.
"""
- return search_parent_directories(path, filename)
+ try:
+ ret = search_parent_directories(path, filename)
+ except AssertionError, e:
+ return None
+ return ret
def _u_find_id(self, id, revision):
"""