diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-13 07:53:17 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-13 07:53:17 -0500 |
commit | 9147ab9e77cd5730c1b2d5a76c92f87564f4af8e (patch) | |
tree | 8187adcf5f85efa7b0019540d857cf9e840b0bd6 /libbe/storage/vcs/hg.py | |
parent | ca52b5cca130fb3bd810276d9de1f198df3cf5b7 (diff) | |
download | bugseverywhere-9147ab9e77cd5730c1b2d5a76c92f87564f4af8e.tar.gz |
Use detect rather than catching errors in _vcs_root().
Diffstat (limited to 'libbe/storage/vcs/hg.py')
-rw-r--r-- | libbe/storage/vcs/hg.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libbe/storage/vcs/hg.py b/libbe/storage/vcs/hg.py index a8504d0..f1a7eef 100644 --- a/libbe/storage/vcs/hg.py +++ b/libbe/storage/vcs/hg.py @@ -62,12 +62,7 @@ class Hg(base.VCS): return False def _vcs_root(self, path): - status,output,error = self._u_invoke_client( - 'root', expect=(0,255), cwd=path) - if status == 255: - # "abort: There is no Mercurial repository here - # (.hg not found)!" - return None + status,output,error = self._u_invoke_client('root', cwd=path) return output.rstrip('\n') def _vcs_init(self, path): |