This is an archive of the discontinued Mercurial Phabricator instance.

rhg: Colorize `rhg status` output when appropriate
ClosedPublic

Authored by SimonSapin on Feb 10 2022, 2:18 PM.

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

SimonSapin created this revision.Feb 10 2022, 2:18 PM

This will likely still need minor changes to make a test pass: https://foss.heptapod.net/mercurial/mercurial-devel/-/jobs/340039
This produces output that looks correct when rendered by a terminal, but escape sequences are not exactly where the test expects them.

SimonSapin updated this revision to Diff 32146.Feb 11 2022, 6:42 AM
SimonSapin retitled this revision from [WIP] rhg: Colorize `rhg status` output when appropriate to rhg: Colorize `rhg status` output when appropriate.Feb 11 2022, 11:35 AM
SimonSapin updated this revision to Diff 32149.
Alphare accepted this revision.Feb 12 2022, 7:05 PM
Alphare added a subscriber: Alphare.
Alphare added inline comments.
tests/test-status-color.t
315

Arguably a feature to not spam the user multiple times

This revision is now accepted and ready to land.Feb 12 2022, 7:05 PM
SimonSapin updated this revision to Diff 32154.Feb 13 2022, 6:06 AM
This revision was automatically updated to reflect the committed changes.