This is an archive of the discontinued Mercurial Phabricator instance.

phabricator: standardize colors
ClosedPublic

Authored by quark on Aug 24 2017, 9:15 PM.

Details

Summary

Previously, the --confirm text could have colors but the main phabsend
does not. This patch adjusts the main command so it also has colors.
A default color table was added so the colors are visible by default.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

quark created this revision.Aug 24 2017, 9:15 PM
indygreg requested changes to this revision.Aug 25 2017, 12:11 AM
indygreg added a subscriber: indygreg.
indygreg added inline comments.
contrib/phabricator.py
444

I suspect Python 3 won't be happy with this. You probably want bytes().

This revision now requires changes to proceed.Aug 25 2017, 12:11 AM
quark edited edge metadata.Aug 25 2017, 12:33 AM
quark updated this revision to Diff 1280.
quark marked an inline comment as done.Aug 25 2017, 12:34 AM
quark added inline comments.
contrib/phabricator.py
444

Good to know bytes could be used here!

yuja requested changes to this revision.Sep 1 2017, 9:03 AM
yuja added a subscriber: yuja.
yuja added inline comments.
contrib/phabricator.py
443

You'll need a mapping from action to _('...'). gettext isn't smart
to capture all possible action values.

This revision now requires changes to proceed.Sep 1 2017, 9:03 AM
quark edited edge metadata.Sep 1 2017, 3:20 PM
quark marked an inline comment as done.
quark updated this revision to Diff 1546.
This revision was automatically updated to reflect the committed changes.