aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/vcs/hg.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-13 07:53:17 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-13 07:53:17 -0500
commit9147ab9e77cd5730c1b2d5a76c92f87564f4af8e (patch)
tree8187adcf5f85efa7b0019540d857cf9e840b0bd6 /libbe/storage/vcs/hg.py
parentca52b5cca130fb3bd810276d9de1f198df3cf5b7 (diff)
downloadbugseverywhere-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.py7
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):