Mercurial > hg > mercurial-source
diff tests/hghave.py @ 17004:468a950aebc3
tests: hghave outer-repo should be true even if a bad repo is found
Only the abort message 'no repository found' is a reliable indication that
there is no outer repo.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 20 Jun 2012 23:41:21 +0200 (2012-06-20) |
parents | 8aeb2f1ae94c |
children | 448d0c452140 |
line wrap: on
line diff
--- a/tests/hghave.py +++ b/tests/hghave.py @@ -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: