changeset 17016 | 468a950aebc3 |
parent 16971 | 8aeb2f1ae94c |
child 17467 | 448d0c452140 |
--- a/tests/hghave.py Wed Jun 20 23:41:21 2012 +0200 +++ b/tests/hghave.py Wed Jun 20 23:41:21 2012 +0200 @@ -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: