aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/vcs/hg.py
diff options
context:
space:
mode:
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):