diff -r 9459951761fb -r df702ad9b314 tests/hghave.py --- a/tests/hghave.py Tue Jun 19 16:00:31 2012 +0100 +++ b/tests/hghave.py Thu Jun 21 14:04:15 2012 +0100 @@ -239,7 +239,9 @@ return False def has_outer_repo(): - return matchoutput('hg root 2>&1', r'') + # failing for other reasons than 'no repo' imply that there is a repo + return not matchoutput('hg root 2>&1', + r'abort: no repository found', True) def has_ssl(): try: