diff options
author | W. Trevor King <wking@drexel.edu> | 2011-02-22 21:02:11 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2011-02-22 21:02:11 -0500 |
commit | 893bbc21bdac3a5f25c17e547df8adab00dbd670 (patch) | |
tree | e3ff8ea586da98cc08776110802db11883c63dca /libbe/storage/vcs/darcs.py | |
parent | 2e32d6fc84d3b211b57a8c39a47b28b991b3ea32 (diff) | |
download | bugseverywhere-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.py | 8 |
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): |