This is an archive of the discontinued Mercurial Phabricator instance.

run-tests: move newline out of colorized message
ClosedPublic

Authored by martinvonz on Oct 17 2017, 2:02 PM.

Details

Summary

The leading newline before "ERROR:" led to an incorrect lexing of the
message and the newline got lost.

The fixed formatting can be seen in the test case. The reason we
didn't notice before was that the bad formatting just led to the loss
of a blank line in the test. However, there are other cases where it
would be joined with a line saying "Accept this change? [n]" or
"Reference output has changed (run again to prompt changes)".

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Oct 17 2017, 2:02 PM
mbthomas accepted this revision.Oct 17 2017, 2:09 PM
This revision was automatically updated to reflect the committed changes.