sapling/eden/scm/edenscm/mercurial
Mark Juggurnauth-Thomas 0ef99947cc color: add combined effects in fallback chains
Summary:
Allow color effects to be joined with `+`, e.g. `blue+bold`.  Unlike effects
separated by spaces, these effects must all be available in order for the
effect to apply.  If any of the effects are not available, then the combined
effect is not valid.

This is useful in fallback chains, where some of the fallbacks are combined
effects, for example: `brightred:red+bold`.

Use these to improve the fallback chains for sparse profiles, so that the
profile names are not shown in black on 8 color terminals.

Reviewed By: quark-zju

Differential Revision: D26580365

fbshipit-source-id: 8e204c901566ac03fb4af066ab1a09142750a9fb
2021-02-23 04:47:01 -08:00
..
cext py3: remove duplicate constant definition 2021-02-11 09:50:25 -08:00
cffi suppress errors in eden - batch 1 2020-07-20 13:29:51 -07:00
commands eden: make the EdenFS import helper use EdenAPI's /trees endpoint instead of /complete_trees 2021-02-22 14:23:40 -08:00
help Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
hgweb smartset: make repo required for baseset 2020-12-14 13:12:42 -08:00
httpclient apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
pure apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
templates template: remove obsfate, instabilities, succsandmarkers 2020-07-02 13:22:28 -07:00
thirdparty remediation of S205607 2020-07-17 17:16:13 -07:00
utils remediation of S205607 2020-07-17 17:16:13 -07:00
__init__.py Update pyre version for eden 2020-04-23 12:09:39 -07:00
ancestor.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
archival.py delete the custom GzipFileWithTime class 2020-03-17 11:07:49 -07:00
autopull.py autopull: do not pull existing commits 2020-10-06 14:32:16 -07:00
bdiff.c use absolute includes for the native cext modules 2020-02-19 13:05:06 -08:00
bdiff.h use absolute includes for the native cext modules 2020-02-19 13:05:06 -08:00
bitmanipulation.h use absolute includes for the native cext modules 2020-02-19 13:05:06 -08:00
blackbox.py pyre: add stub for "bindings" 2020-01-31 13:18:54 -08:00
blobstore.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
bookmarks.py cleanup code 2021-02-22 06:15:48 -08:00
branchmap.py repoview: further remove repoview references 2020-07-06 14:04:27 -07:00
bundle2.py pull: update visibility efficiently via repo.pull API 2020-12-16 17:12:55 -08:00
bundlerepo.py bundlerepo: support non-revlog changelog 2020-10-20 15:24:27 -07:00
byterange.py fix_map 2020-01-28 18:24:56 -08:00
changegroup.py ui: move push/pull messages to stderr 2020-12-16 20:12:04 -08:00
changelog2.py changelog2: add "lazytext" backend 2020-12-18 16:47:11 -08:00
changelog.py extras: allow surrogateescaped byte extras 2020-11-19 18:47:02 -08:00
chgserver.py chg: don't set line buffering 2020-11-05 09:44:00 -08:00
clone.py revlogindex: be Ctrl+C/SIGKILL safe 2020-08-06 12:31:57 -07:00
cmdutil.py smartset: make repo required for baseset 2020-12-14 13:12:42 -08:00
color.py color: add combined effects in fallback chains 2021-02-23 04:47:01 -08:00
commandserver.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
compat.h Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
config.py format: apply latest Black formatting 2020-05-07 09:07:49 -07:00
configitems.py discovery: reduce exchanged heads 2021-02-03 20:32:43 -08:00
connectionpool.py connection pool: log remote path 2020-03-11 02:18:06 -07:00
context.py template: add rev f64 compatibility 2020-11-19 12:15:36 -08:00
copies.py rollout: use doublewrite changelog backend for hg-dev 2020-10-20 15:53:57 -07:00
crecord.py crecord: make it more readable on Windows terminal and light colors 2020-11-05 13:44:41 -08:00
dagop.py smartset: drop repo from iterctx 2020-12-14 13:12:42 -08:00
dagparser.py pycompat: drop sysbytes, sysstr, strurl, bytesurl 2020-01-31 17:59:53 -08:00
dagutil.py repoview: further remove repoview references 2020-07-06 14:04:27 -07:00
debugcommands.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
destutil.py format: apply latest Black formatting 2020-05-07 09:07:49 -07:00
detectissues.py debugging: Implement "debugdetectissues" command for detecting signs of repository issues 2020-05-19 18:11:29 -07:00
dirstate.py fsmonitor: add threshold of nonnormal files to update 2021-01-12 16:26:48 -08:00
dirstateguard.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
discovery.py discovery: pass explicitly specified remote heads to findcommonheadsnew 2021-02-03 20:32:42 -08:00
dispatch.py metrics: use dot . as metric separator 2021-01-21 11:29:42 -08:00
drawdag.py repoview: further remove repoview references 2020-07-06 14:04:27 -07:00
dummycert.pem Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
eden_dirstate_fs.py unicode: skip binary filenames coming from Eden 2020-03-17 09:14:35 -07:00
eden_dirstate_map.py suppress errors in eden - batch 1 2020-07-20 13:29:51 -07:00
eden_dirstate.py repoview: further remove repoview references 2020-07-06 14:04:27 -07:00
eden_update.py py3: fix checkout with conflicts in eden 2020-07-06 14:07:59 -07:00
edenfs.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
EdenThriftClient.py rename eden.thrift Python module to eden.thrift.legacy 2020-06-10 19:29:42 -07:00
encoding.py py3: support outputing bytes via templater 2020-10-02 07:27:08 -07:00
error.py bindings/pyerror: add CertificateError exception 2021-02-11 19:29:22 -08:00
exchange.py pull: update visibility efficiently via repo.pull API 2020-12-16 17:12:55 -08:00
extensions.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
fancyopts.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
filelog.py revlog: add some type annotations 2020-02-03 07:35:32 -08:00
filemerge.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
fileset.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
filesystem.py filesystem: reuse wctx/pctx during status tight loops 2021-01-28 16:55:48 -08:00
formatter.py py3: fix test-command-template-t.py 2020-06-24 01:43:35 -07:00
fscap.py fscap: EdenFS on macOS may be case insensitive 2021-02-10 15:03:41 -08:00
graphmod.py smartset: drop repo from iterctx 2020-12-14 13:12:42 -08:00
hbisect.py bisect: make it python3 compatible 2020-04-08 19:08:51 -07:00
help.py py3: fix test-help.t 2020-04-09 18:25:54 -07:00
helptext.py repo: unconditionally migrate to specified visibility and dirstate format 2020-10-20 16:36:50 -07:00
hg.py support dynamicconfig in clones 2021-02-21 22:25:24 -08:00
hintutil.py shelve: add buck kill warning to shelve and unshelve 2020-12-04 14:33:03 -08:00
hook.py tracing: replace blackbox.logblocked with tracing events 2020-05-12 10:48:43 -07:00
httpconnection.py use integers in comparison for readauthforuri 2020-12-07 05:49:09 -08:00
httppeer.py Update pyre version for eden 2020-04-23 12:09:39 -07:00
i18n.py suppress errors in eden - batch 1 2020-09-28 16:03:43 -07:00
identity.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
json.py suppress errors in eden - batch 1 2020-05-21 19:32:35 -07:00
keepalive.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
localrepo.py do not print warning about repo locking if the wait below the default threshold 2021-02-08 03:16:55 -08:00
lock.py do not print warning about repo locking if the wait below the default threshold 2021-02-08 03:16:55 -08:00
lsprof.py suppress errors in eden - batch 1 2020-05-21 19:32:35 -07:00
lsprofcalltree.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
mail.py check-code: convert to Python 3 2020-05-07 09:07:50 -07:00
manifest.py repoview: further remove repoview references 2020-07-06 14:04:27 -07:00
match.py sparse: fix xoring of None 2020-11-12 17:34:07 -08:00
mdiff.py suppress errors in eden - batch 1 2020-05-21 19:32:35 -07:00
merge.py checkout: print removed cwd warning in nativecheckout 2021-02-20 01:29:11 -08:00
mergeutil.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
metrics.py metrics: use the hgmetrics bindings for incrementing counters 2020-09-09 17:35:48 -07:00
minirst.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
mononokepeer.py mononokepeer: don't concat strings when help message not set 2021-02-18 18:00:27 -08:00
mpatch.c use absolute includes for the native cext modules 2020-02-19 13:05:06 -08:00
mpatch.h use absolute includes for the native cext modules 2020-02-19 13:05:06 -08:00
mutation.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
namespaces.py remove accessed bookmarks feature 2021-02-18 04:02:06 -08:00
node.py node: use binascii.Error in Python3 2020-04-08 23:46:09 -07:00
obsolete.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
obsutil.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
parser.py parser: add a function to walk through a tree 2020-10-20 16:45:43 -07:00
patch.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
pathutil.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
peer.py pycompat: drop sysbytes, sysstr, strurl, bytesurl 2020-01-31 17:59:53 -08:00
perftrace.py tracing: add more trace values 2020-04-22 15:35:17 -07:00
phases.py smartset: make repo required for baseset 2020-12-14 13:12:42 -08:00
posix.py lock: detect deadlock in a same process 2020-10-19 17:07:30 -07:00
profiling.py profiling: do not profile debugshell command 2020-08-27 18:14:29 -07:00
progress.py py3: fix prompt being erased by progress 2020-07-16 16:26:33 -07:00
pushkey.py py3: fix pushkey encoding by removing local encoding 2020-01-31 13:12:13 -08:00
pvec.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
pycompat.py apply pyfmt with usort to opted-in sources 2020-11-10 21:25:54 -08:00
rcutil.py py3: fix test-hint.py 2020-04-08 22:00:35 -07:00
registrar.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
repair.py ui: move push/pull messages to stderr 2020-12-16 20:12:04 -08:00
replay.py mononoke/hg_sync: make it work on Mercurial Python 3 2020-09-04 11:56:44 -07:00
repository.py remotefilelog: move stream_out wireprotocol to core 2020-05-12 10:23:21 -07:00
revlog.py streams: add API to prefetch commit text in a streaming fashion 2020-10-20 18:40:58 -07:00
revset.py revset: optimize _firstancestors using Rust fast path 2021-02-05 11:53:45 -08:00
revsetlang.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
rewriteutil.py smartset: make repo required for baseset 2020-12-14 13:12:42 -08:00
scmposix.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
scmutil.py bindings/pyerror: add CertificateError exception 2021-02-11 19:29:22 -08:00
scmwindows.py typing: enable pyre 2019-12-04 10:55:00 -08:00
server.py util: use Rust pyprocess to implement spawndetached 2020-08-31 17:34:48 -07:00
setdiscovery.py setdiscovery: include tip in localheads if it's empty 2021-02-10 14:08:16 -08:00
similar.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
simplemerge.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
smallcommitmetadata.py debug: Add commit metadata storage and templating for marking stable commits 2020-06-10 19:29:39 -07:00
smartset.py revset: optimize nameset._slice 2021-02-05 12:00:41 -08:00
sparse.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
sshpeer.py introduce ability to talk to mononoke directly 2020-11-18 07:34:38 -08:00
sshserver.py py3: fix test-bundle2-exchange.t 2020-04-13 15:28:25 -07:00
sslutil.py speed test on mononoke 2021-01-25 02:29:19 -08:00
statprof.py codemod: signal.signal -> util.signal 2020-09-18 13:28:34 -07:00
stdiopeer.py introduce ability to talk to mononoke directly 2020-11-18 07:34:38 -08:00
store.py changelog2: track "tip" explicitly 2020-10-20 15:24:28 -07:00
streamclone.py streamclone: send files that might be un-inlined soon first 2020-11-14 08:02:21 -08:00
streams.py streams: restore commit text prefetching behavior 2020-12-14 19:10:44 -08:00
templatefilters.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
templatekw.py template: add rev f64 compatibility 2020-11-19 12:15:36 -08:00
templatenew.py scmutil: remove meaningfulparents 2020-09-05 15:06:44 -07:00
templater.py template: fix ifcontains(rev, revset('.'), ...) compatibility with f64 compatibility 2020-12-09 10:36:28 -08:00
transaction.py transaction: record transaction name to metalog 2021-01-29 12:36:08 -08:00
treedirstate.py i18n: use _x to signal untranslated strings 2020-05-07 09:07:49 -07:00
treestate.py repo: unconditionally migrate to specified visibility and dirstate format 2020-10-20 16:36:50 -07:00
txnutil.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
types.py py3: add stub for localrepository 2020-02-03 17:07:36 -08:00
ui.py ui: make ui.debug write to stderr 2020-12-15 12:07:47 -08:00
uiconfig.py dynamicconfig: introduce configs.allowedconfigs 2021-02-10 19:30:35 -08:00
url.py py3: fix test-command-template-t.py 2020-06-24 01:43:35 -07:00
urllibcompat.py apply pyfmt with usort to opted-in sources 2020-11-10 21:25:54 -08:00
util.py grep: fix infinite recursion in biggrep integration 2021-02-01 12:23:45 -08:00
verify.py changelog: initial support for segmented changelog 2020-08-04 09:59:11 -07:00
vfs.py lock: detect deadlock in a same process 2020-10-19 17:07:30 -07:00
visibility.py repo: unconditionally migrate to specified visibility and dirstate format 2020-10-20 16:36:50 -07:00
win32.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
windows.py lock: detect deadlock in a same process 2020-10-19 17:07:30 -07:00
winutil.py py3: move checkwinfilename() to a separate file and add type hints 2020-01-31 20:18:21 -08:00
wireproto.py wireproto: fix incorrect name in timefunction 2020-12-14 07:57:46 -08:00
worker.py worker: remove the forkers 2020-06-23 18:47:44 -07:00