aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/vcs/darcs.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2011-02-22 21:02:11 -0500
committerW. Trevor King <wking@drexel.edu>2011-02-22 21:02:11 -0500
commit893bbc21bdac3a5f25c17e547df8adab00dbd670 (patch)
treee3ff8ea586da98cc08776110802db11883c63dca /libbe/storage/vcs/darcs.py
parent2e32d6fc84d3b211b57a8c39a47b28b991b3ea32 (diff)
downloadbugseverywhere-893bbc21bdac3a5f25c17e547df8adab00dbd670.tar.gz
Local imports and better missing-client detection in client-based VCS classes.
Diffstat (limited to 'libbe/storage/vcs/darcs.py')
-rw-r--r--libbe/storage/vcs/darcs.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/libbe/storage/vcs/darcs.py b/libbe/storage/vcs/darcs.py
index 4aa8766..4a19d1d 100644
--- a/libbe/storage/vcs/darcs.py
+++ b/libbe/storage/vcs/darcs.py
@@ -35,7 +35,8 @@ except ImportError: # look for non-core module
from xml.sax.saxutils import unescape
import libbe
-import base
+from ...util.subproc import CommandError
+from . import base
if libbe.TESTING == True:
import doctest
@@ -57,7 +58,10 @@ class Darcs(base.VCS):
self.__updated = [] # work around http://mercurial.selenic.com/bts/issue618
def _vcs_version(self):
- status,output,error = self._u_invoke_client('--version')
+ try:
+ status,output,error = self._u_invoke_client('--version')
+ except CommandError: # command not found?
+ return None
return output.strip()
def version_cmp(self, *args):