diff options
author | W. Trevor King <wking@drexel.edu> | 2010-01-01 16:54:30 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-01-01 16:54:30 -0500 |
commit | 97eabcc3657bdc6511baebd79b059ae1589c7e87 (patch) | |
tree | 32b896bed9ea94c5fda2e2a68345916dd8c5cea7 /libbe/storage/vcs/base.py | |
parent | 4d4283ecd654f1efb058cd7f7dba6be88b70ee92 (diff) | |
parent | 286c686cb50eb8240fa9b15365d61783279b86a2 (diff) | |
download | bugseverywhere-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/base.py')
-rw-r--r-- | libbe/storage/vcs/base.py | 8 |
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): """ |