( )โš™ D3967 dispatch: making all hg abortions be output with a specific label

This is an archive of the discontinued Mercurial Phabricator instance.

dispatch: making all hg abortions be output with a specific label
ClosedPublic

Authored by rdamazio on Jul 20 2018, 2:22 AM.

Details

Summary

This allows abortions to be highlighted specially and separately
from warnings - for instance, red is a reasonable color for when hg
aborts, but is overly dramatic for most warnings produced elsewhere.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

rdamazio created this revision.Jul 20 2018, 2:22 AM
martinvonz added inline comments.
mercurial/commandserver.py
356

What do you think about introducing a ui.error() instead?

rdamazio marked an inline comment as done.Jul 20 2018, 4:25 PM
rdamazio updated this revision to Diff 9641.
martinvonz accepted this revision.Jul 20 2018, 4:30 PM

Looks good! I won't queue it now because it's freeze and it feels controversial enough that I shouldn't queue it anyway. I've actually wanted a ui.error() for some time and it's just the fact that we still don't have have it that makes me wonder if it's controversial.

mercurial/scmutil.py
172โ€“173

nit: revert formatting change

This revision is now accepted and ready to land.Jul 20 2018, 4:30 PM
lothiraldan added inline comments.
mercurial/commandserver.py
356

Huge ๐Ÿ‘

pulkit accepted this revision.Jul 23 2018, 3:05 PM
pulkit added a subscriber: pulkit.

Looks good to me too. I don't think this is something we accept on stable so I will hold on pushing this until code-freeze.

Queuing this given Boris's and Pulkit's blessings.

This revision was automatically updated to reflect the committed changes.