sapling/mercurial
Mark Thomas 75853bb1a6 templater: add default argument to dict get
Summary:
Add a third argument to the `get(dict, key)` template function that serves as a
default.

Reviewed By: DurhamG, quark-zju

Differential Revision: D12980774

fbshipit-source-id: d619275dd3ae880f6aba4c2b3d91aea4b45ea6d6
2018-12-14 06:43:41 -08:00
..
cext osutil: get argv[0] on Linux more reliably 2018-10-30 14:11:16 -07:00
cffi codemod: add copyright headers 2018-10-26 15:09:12 -07:00
commands drawdag: add --print option 2018-12-13 10:47:28 -08:00
default.d mergetools.rc: find OSX FileMerge in the new location inside Xcode 4.3 2015-10-16 11:37:34 +02:00
help mutation: add mutation information to commit contexts 2018-12-13 10:47:27 -08:00
hgweb profiling: remove redundant "enabled" argument from "profiling.profile" 2018-09-14 19:05:35 -07:00
httpclient codemod: reformat rest of the code 2018-07-05 17:52:43 -07:00
pure Format with black 18.9b0 2018-10-01 07:21:42 -07:00
rust mutationstore: add Python bindings 2018-12-14 06:43:40 -08:00
templates hgweb: stop using HTML comments in <script> 2017-12-15 12:15:58 +08:00
thirdparty Format with black 18.9b0 2018-10-01 07:21:42 -07:00
__init__.py hgext: drop support for thirdparty default extensions 2018-12-12 18:54:22 -08:00
ancestor.py Additional info in function comment for commonancestorheads 2018-06-20 09:35:30 -07:00
archival.py Format with black 18.9b0 2018-10-01 07:21:42 -07:00
bdiff.c hg: disable check-code tests for C code 2018-06-05 19:21:43 -07:00
bdiff.h hg: disable check-code tests for C code 2018-06-05 19:21:43 -07:00
bitmanipulation.h hg: disable check-code tests for C code 2018-06-05 19:21:43 -07:00
bookmarks.py bookmarks: use repo.localvfs and repo.sharedvfs instead of repo.vfs 2018-09-28 07:23:00 -07:00
branchmap.py perftweaks: port _branchmapupdate to core 2018-10-18 07:24:23 -07:00
bundle2.py bundle2: use repo bundle2 capabilities when making local bundles 2018-07-31 10:23:21 -07:00
bundlerepo.py hg: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:00 -07:00
byterange.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
changegroup.py verify LFS blobs were uploaded before push 2018-08-20 16:51:07 -07:00
changelog.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
chgserver.py chgserver: drop walkconfig hack 2018-07-23 19:51:02 -07:00
cmdutil.py mutation: add split support 2018-12-13 10:47:28 -08:00
color.py color: support truecolor terminals 2018-10-27 10:32:32 -07:00
commandserver.py commandserver: set pycompact.sysargv on runcommand 2018-07-09 10:20:36 -07:00
compat.h hg: disable check-code tests for C code 2018-06-05 19:21:43 -07:00
config.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
configitems.py mutation: add mutation information to commit contexts 2018-12-13 10:47:27 -08:00
connectionpool.py connectionpool: fix wrapping of cleanup 2018-06-21 23:20:10 -07:00
context.py mutation: add split support 2018-12-13 10:47:28 -08:00
copies.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
crecord.py crecord: show hint about how to use the text interface 2018-12-05 20:09:19 -08:00
dagop.py commitcloud: prototype for hg cloud sl command 2018-08-02 12:50:44 -07:00
dagparser.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
dagutil.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
debugcommands.py commands: move debugcommands to commands/debug 2018-12-12 21:03:38 -08:00
destutil.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
dirstate.py dirstate: stop testing directories as files in ignore handling 2018-12-12 22:44:17 -08:00
dirstateguard.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
discovery.py discovery: don't exclude extinct commits 2018-11-06 03:14:58 -08:00
dispatch.py commands: move debugcommands to commands/debug 2018-12-12 21:03:38 -08:00
drawdag.py drawdag: add --print option 2018-12-13 10:47:28 -08:00
dummycert.pem ssl: on OS X, use a dummy cert to trick Python/OpenSSL to use system CA certs 2014-09-26 02:19:48 +02:00
encoding.py Format with black 18.9b0 2018-10-01 07:21:42 -07:00
entrypoint.py entrypoint: avoid importing heavy modules before demandimport is in play 2018-10-23 08:27:35 -07:00
error.py lock: rename locker to lockinfo and clarify its usage 2018-08-08 16:20:20 -07:00
exchange.py remotefilelog: don't process manifests when not necessary 2018-06-19 10:20:07 -07:00
executionmodel.py entrypoint: avoid importing heavy modules before demandimport is in play 2018-10-23 08:27:35 -07:00
extensions.py extensions: remove foreign extension check 2018-12-13 12:01:13 -08:00
fancyopts.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
filelog.py remotefilelog: move remotefilelog specific fileslog logic to remotefilelog 2018-11-11 21:37:52 -08:00
filemerge.py filemerge: fix fcd.p1 raising exception 2018-12-06 19:38:36 -08:00
fileset.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
formatter.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
fscap.py pathutil: don't check for case sensitivity on always case-sensitive filesystems 2018-09-24 14:23:03 -07:00
graphmod.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
hbisect.py bisect: don't test empty commits in sparse profiles 2018-10-08 06:16:19 -07:00
help.py help: allow help text config for aliases to be quoted 2018-12-13 03:11:40 -08:00
hg.py perftweaks: move update --inactive to core 2018-10-15 16:55:34 -07:00
hintutil.py hint: point people to gitignore QA page 2018-08-20 13:51:32 -07:00
hook.py txnutil: add HG_SHAREDPENDING and trysharedpending 2018-09-28 07:23:00 -07:00
httpconnection.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
httppeer.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
i18n.py i18n: support ngettext for pluralized strings 2018-11-06 03:19:01 -08:00
identity.py identity: add templating of program name 2018-10-26 04:19:01 -07:00
interpreter.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
json.py debugcommands: add a "debugprocesstree" command 2018-08-22 21:35:19 -07:00
keepalive.py config: change order semantics 2018-08-09 21:21:51 -07:00
localrepo.py localrepo: add localrepo.nodes 2018-12-13 10:47:28 -08:00
lock.py lock: remove stale POSIX symlink lock automatically in makelock 2018-09-13 12:20:51 -07:00
logexchange.py hg: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:00 -07:00
lsprof.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
lsprofcalltree.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
mail.py codemod: reformat rest of the code 2018-07-05 17:52:43 -07:00
manifest.py Format with black 18.9b0 2018-10-01 07:21:42 -07:00
match.py dirstate: stop testing directories as files in ignore handling 2018-12-12 22:44:17 -08:00
mdiff.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
merge.py sparse: drop mercurial.sparse 2018-10-30 19:22:43 -07:00
mergeutil.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
metrics.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
minirst.py identity: add templating of program name 2018-10-26 04:19:01 -07:00
mpatch.c hg: disable check-code tests for C code 2018-06-05 19:21:43 -07:00
mpatch.h hg: disable check-code tests for C code 2018-06-05 19:21:43 -07:00
mutation.py mutation: add split support 2018-12-13 10:47:28 -08:00
namespaces.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
node.py Format with black 18.9b0 2018-10-01 07:21:42 -07:00
obsolete.py Format with black 18.9b0 2018-10-01 07:21:42 -07:00
obsutil.py fbamend: move predecessor/successor revsets to core 2018-10-03 13:32:56 -07:00
parser.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
patch.py plain: add a diff exception 2018-12-05 19:23:41 -08:00
pathutil.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
peer.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
phases.py txnutil: add HG_SHAREDPENDING and trysharedpending 2018-09-28 07:23:00 -07:00
policy.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
posix.py repack: flush new pack files before proceeding to delete old ones 2018-11-28 17:58:31 -08:00
profiling.py statprof: stop early if profiling ends early 2018-09-26 17:52:27 -07:00
progress.py progress: drop config to specify condtype 2018-11-09 15:27:52 -08:00
pushkey.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
pvec.py Format with black 18.9b0 2018-10-01 07:21:42 -07:00
pycompat.py util: remove xmlrpclib 2018-12-06 15:37:40 -08:00
rcutil.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
registrar.py help: enable categorization of subcommands 2018-10-19 06:51:42 -07:00
repair.py hg: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:00 -07:00
repository.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
repoview.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
revlog.py Format with black 18.9b0 2018-10-01 07:21:42 -07:00
revset.py revsets: deprecate allpredecessors and allsuccessors 2018-11-05 02:30:57 -08:00
revsetlang.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
rewriteutil.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
scmposix.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
scmutil.py discovery: don't exclude extinct commits 2018-11-06 03:14:58 -08:00
scmwindows.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
server.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
setdiscovery.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
similar.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
simplemerge.py simplemerge: return number of conflicts, not just 1 2018-09-21 16:35:28 -07:00
smartset.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
sparse.py restore part of the mercurial.sparse module 2018-10-31 19:48:30 -07:00
sshpeer.py ssh: remove "remote:" prefix if the stderr message starts with "ssh:" 2018-10-18 19:56:49 -07:00
sshserver.py serve: change process title to be more meaningful 2018-10-27 15:12:03 -07:00
sslutil.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
statichttprepo.py localrepo: devel-warn when accessing repo.vfs directly 2018-09-28 07:23:02 -07:00
statprof.py statprof: stop early if profiling ends early 2018-09-26 17:52:27 -07:00
store.py store: encode even longer names further 2018-09-20 08:35:09 -07:00
streamclone.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
subrepo.py hg: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:00 -07:00
tagmerge.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
tags.py perftweaks: port _readtagcache optimization to core 2018-10-17 12:02:44 -07:00
templatefilters.py templatefilters: move json serialization to a separate module 2018-07-09 10:20:36 -07:00
templatekw.py templatekw: implement nodechanges as a template keyword 2018-06-06 15:43:25 -07:00
templater.py templater: add default argument to dict get 2018-12-14 06:43:41 -08:00
transaction.py truncate: handle bug in truncate 2018-05-30 18:20:57 -07:00
treedirstate.py dirstate: move some untrack() use cases into delete() 2018-10-12 09:38:25 -07:00
treediscovery.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
treestate.py fsmonitor: add migration to toggle tracking ignored files 2018-11-03 11:12:56 -07:00
txnutil.py txnutil: add HG_SHAREDPENDING and trysharedpending 2018-09-28 07:23:00 -07:00
ui.py config: use Rust-backed parselist 2018-12-06 18:23:52 -08:00
unionrepo.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
upgrade.py hg: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:00 -07:00
url.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
urllibcompat.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
util.py mutation: add rebase support 2018-12-13 10:47:27 -08:00
verify.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
vfs.py Back out "vfs: do not unlink files with one hardlink on Windows" 2018-06-19 16:19:51 -07:00
win32.py windows: implement a more atomic rename/replace 2018-11-07 10:37:23 -08:00
windows.py repack: flush new pack files before proceeding to delete old ones 2018-11-28 17:58:31 -08:00
wireproto.py wireproto: log reponame 2018-10-02 05:05:41 -07:00
worker.py Pass callsite to worker to enable thread-based windows worker from blobstore. 2018-12-07 15:57:41 -08:00