diff -r 2de6ac4ac17c -r 95ca6c8b38da tests/test-subrepo-missing.t --- a/tests/test-subrepo-missing.t Fri May 04 14:19:52 2012 +0200 +++ b/tests/test-subrepo-missing.t Fri May 04 14:19:55 2012 +0200 @@ -19,6 +19,15 @@ M .hgsubstate $ hg revert -qC .hgsubstate +abort more gracefully on .hgsubstate parsing error + + $ cp .hgsubstate .hgsubstate.old + >>> file('.hgsubstate', 'wb').write('\ninvalid') + $ hg st --subrepos + abort: invalid subrepository revision specifier in .hgsubstate line 2 + [255] + $ mv .hgsubstate.old .hgsubstate + delete .hgsub and revert it $ rm .hgsub