aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/vcs/base.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-28 13:22:27 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-28 13:22:27 -0500
commite0e7328742b92cb5e08aeec348fce966375d7d52 (patch)
treec9a1a14cbe6213b2ad9c23bbdfac63db121aba2b /libbe/storage/vcs/base.py
parentc90044dff5feaf5f43fee9e8559fecec2ec60091 (diff)
downloadbugseverywhere-e0e7328742b92cb5e08aeec348fce966375d7d52.tar.gz
Updated Git backend to support .children(revision).
+ some minor fixes to vcs/base.py and vcs/bzr.py Also removed .be/id-cache, which should never have been versioned in the first place.
Diffstat (limited to 'libbe/storage/vcs/base.py')
-rw-r--r--libbe/storage/vcs/base.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbe/storage/vcs/base.py b/libbe/storage/vcs/base.py
index 3b66019..8a8b3ca 100644
--- a/libbe/storage/vcs/base.py
+++ b/libbe/storage/vcs/base.py
@@ -783,9 +783,11 @@ os.listdir(self.get_path("bugs")):
return default
relpath = self._u_rel_path(path)
try:
- contents = self._vcs_get_file_contents(relpath,revision)
+ contents = self._vcs_get_file_contents(relpath, revision)
except InvalidID, e:
- raise InvalidPath(path=path, root=self.repo, id=id)
+ if InvalidID == None:
+ e.id = InvalidID
+ raise
if contents in [libbe.storage.base.InvalidDirectory,
libbe.util.InvalidObject]:
raise InvalidID(id)