mirror of
https://github.com/facebook/sapling.git
synced 2024-12-28 23:54:12 +03:00
60e99a245c
Summary: Add optional prefix keyword arguments to `ui.write` (and thus `ui.status`, `ui.warn`, etc.). These prefixes can be used to indicate an error condition, some notice to the user, or to mark a message as coming from a particular component. The prefixes are labelled so that they can be colored to stand out from the surrounding text. The default colors are red for errors, yellow for notices, and cyan for components. Add a component parameter to `error.Abort` (and thus any exception that inherits from it) that can be used by callers to mark which component is responsible for the exception. When the error is printed, the component is passed as the component prefix of the error message. Reviewed By: mitrandir77 Differential Revision: D15201946 fbshipit-source-id: 02e3da40e9563704fa1d7ce81366e6e7f66c7f34 |
||
---|---|---|
.. | ||
check-translation.py | ||
da.po | ||
de.po | ||
el.po | ||
fr.po | ||
hggettext | ||
it.po | ||
ja.po | ||
polib.LICENSE | ||
polib.py | ||
posplit | ||
pt_BR.po | ||
ro.po | ||
ru.po | ||
sv.po | ||
zh_CN.po | ||
zh_TW.po |