This is an archive of the discontinued Mercurial Phabricator instance.

tests: don't allow reodering of glob/re lines across non-glob/re lines
ClosedPublic

Authored by martinvonz on Jul 3 2018, 7:42 PM.

Details

Summary

As shown in the test case added in the previous patch, it can be
really hard to interpret diffs from the test runner if there are
multiple lines that would match a given glob or regular expression. It
looks like this has been the case since 1ad0ddf8cccc (run-tests: teach
_processoutput to handle multiple lines of churn, 2016-03-17). It
seems like the point of that was to preserve the "(glob)" annotation
on lines even if they got moved. This patch tries to preserve that but
only allows the lines to be moved past other glob/re lines.

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.Jul 3 2018, 7:42 PM
martinvonz updated this revision to Diff 9428.Jul 3 2018, 7:50 PM
This revision was automatically updated to reflect the committed changes.