projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f23fcc
)
Fixes to get libbe.storage.vcs.hg passing tests.
author
W. Trevor King
<wking@drexel.edu>
Sun, 13 Dec 2009 12:26:37 +0000
(07:26 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Sun, 13 Dec 2009 12:26:37 +0000
(07:26 -0500)
libbe/storage/vcs/base.py
patch
|
blob
|
history
diff --git
a/libbe/storage/vcs/base.py
b/libbe/storage/vcs/base.py
index faa891a0d8f3a358e7ab1309c52194cbcaaa661f..5d7be7dd6f91cd8268ff93adc86549c19966e56b 100644
(file)
--- a/
libbe/storage/vcs/base.py
+++ b/
libbe/storage/vcs/base.py
@@
-202,7
+202,8
@@
class CachedPathID (object):
self.disconnect()
def destroy(self):
- os.remove(self._cache_path)
+ if os.path.exists(self._cache_path):
+ os.remove(self._cache_path)
def connect(self):
if not os.path.exists(self._cache_path):
@@
-969,7
+970,7
@@
if libbe.TESTING == True:
self.s.destroy()
self.failUnless(self.s._detect(self.dirname) == False,
'Detected %(name)s VCS before initialising'
- %
self.Class
)
+ %
vars(self.Class)
)
self.s.init()
self.s.connect()