aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/vcs/base.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-13 07:26:37 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-13 07:26:37 -0500
commit85aa14161c125f996f0d146b93f9cb06a0b3928f (patch)
treede661c67a38be4c5a75b2a704d8d46fd141995b3 /libbe/storage/vcs/base.py
parent6f23fccbde4ede1121d5baf35c81932b7c8aa7bb (diff)
downloadbugseverywhere-85aa14161c125f996f0d146b93f9cb06a0b3928f.tar.gz
Fixes to get libbe.storage.vcs.hg passing tests.
Diffstat (limited to 'libbe/storage/vcs/base.py')
-rw-r--r--libbe/storage/vcs/base.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbe/storage/vcs/base.py b/libbe/storage/vcs/base.py
index faa891a..5d7be7d 100644
--- 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()