aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/vcs/base.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-19 09:02:45 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-19 09:02:45 -0500
commitd616494d67e5d50f85fccf12c2e679389f7445e1 (patch)
treecaf12b3ce3a5c23b1aa24fa8ab841e5f911244e6 /libbe/storage/vcs/base.py
parente86d95647ba1dbd451fc06d0a25407e1e39cb023 (diff)
downloadbugseverywhere-d616494d67e5d50f85fccf12c2e679389f7445e1.tar.gz
Better error messages in VCS._get
Diffstat (limited to 'libbe/storage/vcs/base.py')
-rw-r--r--libbe/storage/vcs/base.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/libbe/storage/vcs/base.py b/libbe/storage/vcs/base.py
index aa2bbaf..15460b0 100644
--- a/libbe/storage/vcs/base.py
+++ b/libbe/storage/vcs/base.py
@@ -815,12 +815,14 @@ os.listdir(self.get_path("bugs")):
try:
contents = self._vcs_get_file_contents(relpath, revision)
except InvalidID, e:
- if InvalidID == None:
- e.id = InvalidID
+ if e.id == None:
+ e.id = id
+ if e.revision == None:
+ e.revision = revision
raise
if contents in [libbe.storage.base.InvalidDirectory,
libbe.util.InvalidObject]:
- raise InvalidID(id)
+ raise InvalidID(id, revision)
elif len(contents) == 0:
return None
return contents