projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e86d956
)
Better error messages in VCS._get
author
W. Trevor King
<wking@drexel.edu>
Tue, 19 Jan 2010 14:02:45 +0000
(09:02 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Tue, 19 Jan 2010 14:02:45 +0000
(09:02 -0500)
libbe/storage/vcs/base.py
patch
|
blob
|
history
diff --git
a/libbe/storage/vcs/base.py
b/libbe/storage/vcs/base.py
index aa2bbaf84dbfe8d97e08e1d732becf1e070d2268..15460b035edff86ba15de0c04c273ad50bdaf92c 100644
(file)
--- 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