# HG changeset patch # User Mads Kiilerich # Date 1340228481 -7200 # Node ID 9b2932ca75fdf4a9d77167cdaef56347f41bc5f3 # Parent 5c7fdc5d6a368f9bb3688de9bf4d076e929b3203 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. [ original upstream message ] diff -r 5c7fdc5d6a36 -r 9b2932ca75fd tests/hghave.py --- 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: