sapling/mercurial
FUJIWARA Katsunori 15ff9ca52f templatefilters: use templatefilter to mark a function as template filter
Using decorator can localize changes for adding (or removing) a
template filter function in source code.

This patch also removes leading ":FILTER:" part in help document of
each filters, because using templatefilter makes it useless.

This patch uses not 'filter' but 'templatefilter' as a decorator name,
because the former name hides Python built-in one, even though the
latter is a little redundant in 'templatefilters.py'.
2016-03-30 02:10:44 +09: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 help: document sharing of revlog header with revision 0 2016-03-19 15:17:33 -07:00
hgweb http: support sending hgargs via POST body instead of in GET or headers 2016-03-11 11:37:00 -05:00
httpclient httpclient: update to 938f2107d6e2 of httpplus 2015-12-31 13:19:20 -05:00
pure mpatch: move collect() to module level 2016-03-19 16:45:52 -04:00
templates hgweb: add index template to json/map 2016-02-27 19:53:18 +08:00
__init__.py mercurial: use pure Python module policy on Python 3 2016-03-12 13:19:19 -08:00
ancestor.py ancestor: use absolute_import 2015-08-07 19:45:48 -07:00
archival.py match: rename "narrowmatcher" to "subdirmatcher" (API) 2016-02-05 21:09:32 -08:00
base85.c base85: clean up function definition style 2015-11-11 19:10:45 -05:00
bdiff.c bdiff: avoid a memory error on malloc failure 2013-10-30 16:03:42 -05:00
bookmarks.py with: use context manager for wlock in _writeactive 2016-01-15 13:14:45 -08:00
branchmap.py cache: rebuild branch cache from scratch when inconsistencies are detected 2016-03-13 02:06:23 +01:00
bundle2.py bundle: remove obsolete (and duplicate) comment 2016-03-29 10:21:05 -07:00
bundlerepo.py bundle: move writebundle() from changegroup.py to bundle2.py (API) 2016-03-28 14:41:29 -07:00
byterange.py byterange: use absolute_import 2015-12-21 21:42:14 -08:00
changegroup.py bundle: move writebundle() from changegroup.py to bundle2.py (API) 2016-03-28 14:41:29 -07:00
changelog.py changelog: avoid slicing raw data until needed 2016-03-06 15:40:20 -08:00
cmdutil.py crecord: re-enable reviewing a patch before comitting it 2016-03-20 21:08:17 -04:00
commands.py bundle: avoid crash when no good changegroup version found 2016-03-25 23:05:32 -07:00
commandserver.py cmdserver: write early exception to 'e' channel in 'unix' mode 2016-03-12 22:03:30 +09:00
config.py config: add hasconfig method and supporting plumbing 2016-01-07 19:45:03 -08:00
context.py context: use changelogrevision 2016-03-06 13:26:37 -08:00
copies.py copies: optimize forward copy detection logic for rebases 2016-02-05 13:23:24 -08:00
crecord.py crecord: re-enable reviewing a patch before comitting it 2016-03-20 21:08:17 -04:00
dagparser.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
dagutil.py dagutil: use absolute_import 2015-08-08 19:04:09 -07:00
demandimport.py merge with stable 2016-02-29 17:52:17 -06:00
destutil.py destutil: show message and hint at updating to the closed head as warning 2016-03-29 23:59:32 +09:00
diffhelpers.c diffhelpers: fix botched return statement from e48d70075d8a 2015-01-28 13:34:20 -05:00
dirs.c dirs.c: pass C string, not Python string, to _finddir() 2015-05-08 14:13:12 -07:00
dirstate.py dirstate: add a way to get the ignore file/line matching an ignored file 2016-01-05 07:52:04 -08:00
discovery.py bookmarks: don't allow pushing new head for existing mark with -B (issue4400) 2015-10-21 16:21:27 -05:00
dispatch.py registrar: add templatefilter to mark a function as template filter (API) 2016-03-30 02:10:44 +09: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 encoding: use range() instead of xrange() 2016-03-11 21:27:26 -08:00
error.py destutil: add more precise error classes for destmerge 2016-02-09 23:30:41 +00:00
exchange.py exchange: make _pushb2ctx() look more like _getbundlechangegrouppart() 2016-03-25 16:13:28 -07:00
exewrapper.c exewrapper: add comments about PYTHONHOME 2015-10-14 12:23:49 +02:00
extensions.py extensions: also search for extension in the 'hgext3rd' package 2016-03-11 10:30:08 +00:00
fancyopts.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
filelog.py filelog: use absolute_import 2015-08-08 19:11:42 -07:00
filemerge.py filemerge: use revset notation for p1/p2 of local/other descriptions 2016-03-17 00:36:01 +00:00
fileset.py fileset: replace predicate by filesetpredicate of registrar (API) 2016-03-11 04:14:54 +09:00
formatter.py templater: relax unquotestring() to fall back to bare string 2016-03-26 18:12:12 +09:00
graphmod.py graphmod: set default edge styles for ascii graphs (BC) 2016-03-23 13:34:47 -07:00
hbisect.py with: use context manager in bisect save_state 2016-01-15 13:14:49 -08:00
help.py help: document requirements 2016-03-12 18:51:07 -08:00
hg.py hg: perform update after pulling during clone with share (issue5103) 2016-03-25 10:47:49 -07:00
hook.py hook: don't crash on syntax errors in python hooks 2016-02-12 14:50:10 -08:00
httpconnection.py httpconnection: remove obsolete comment about open() 2016-03-14 14:08:28 -07:00
httppeer.py bundle: move writebundle() from changegroup.py to bundle2.py (API) 2016-03-28 14:41:29 -07:00
i18n.py py3: handle ugettext + unicode in i18n 2016-03-29 17:22:08 +00:00
keepalive.py keepalive: remove useless parentheses around exception type 2016-02-28 00:00:13 -08:00
localrepo.py localrepo: support background closing for wwrite() 2016-02-20 15:25:27 -08:00
lock.py util: enable getpid to be replaced 2016-02-03 09:11:22 +00:00
lsprof.py lsprof: use print function 2016-01-02 11:40:53 -08:00
lsprofcalltree.py lsprofcalltree: use print function 2016-01-02 11:45:29 -08:00
mail.py patch: when importing from email, RFC2047-decode From/Subject headers 2016-03-03 18:34:19 +01:00
manifest.c lazymanifest: check more return values in filtercopy 2015-12-31 13:31:42 -05:00
manifest.py changegroup: fix treemanifests on merges 2016-02-12 23:09:09 -08:00
match.py match: override 'visitdir' in subdirmatcher 2016-02-05 21:25:44 -08:00
mdiff.py mdiff: don't emit a diff header for empty trivial deltas 2016-01-11 22:00:07 -05:00
merge.py merge: save merge part labels for later reuse 2016-03-19 18:37:10 -07:00
minirst.py minirst: change hgrole to use single quotes 2016-01-12 06:03:36 +00:00
mpatch.c parsers: detect short records (SEC) 2016-03-16 17:30:26 -07:00
namespaces.py namespaces: fix name/node confusion 2016-03-16 23:12:43 +00:00
node.py node: use byte literals to construct nullid and wdirid 2016-03-12 14:04:57 -08:00
obsolete.py obsolete: fix n^2 marker computation behavior 2016-02-04 15:38:04 -08:00
osutil.c osutil: stop using strcpy 2016-03-19 20:02:19 -04:00
parser.py parser: move unescape helper from templater 2015-09-10 23:25:10 +09:00
parsers.c parsers: optimize filtered headrevs logic 2016-03-08 00:20:08 -08:00
patch.py patch: when importing from email, RFC2047-decode From/Subject headers 2016-03-03 18:34:19 +01:00
pathencode.c pathencode: remove an unused assignment 2015-12-12 20:59:37 -08:00
pathutil.py pathauditor: change parts verification order to be root first 2016-02-11 17:04:33 -08:00
peer.py peer: add an iterbatcher interface 2016-03-01 18:39:25 -05:00
phases.py phases: use constants for phase values 2016-02-15 16:49:52 -08:00
posix.py mac: fix percent-encoding of non-utf-8 characters (issue4999) 2015-12-12 21:36:21 -06:00
progress.py progress: display progress bar when HGPLAINEXCEPT contains "progress" 2016-02-17 15:18:30 -08:00
pushkey.py pushkey: use absolute_import 2015-08-08 19:57:27 -07:00
pvec.py pvec: use absolute_import 2015-12-21 21:32:58 -08:00
py3kcompat.py py3compat: use absolute_import 2015-12-21 21:31:57 -08:00
registrar.py registrar: add templatefilter to mark a function as template filter (API) 2016-03-30 02:10:44 +09:00
repair.py bundle: move writebundle() from changegroup.py to bundle2.py (API) 2016-03-28 14:41:29 -07:00
repoview.py repoview: discard filtered changelog if index isn't shared with unfiltered 2016-02-24 06:10:46 +09:00
revlog.py revlog: remove unnecessary cache validation in _chunks 2015-11-22 17:57:35 -08:00
revset.py revset: inline _getaliasarg() function 2016-02-14 20:43:30 +09:00
scmposix.py scmposix: use absolute_import 2015-12-21 21:24:49 -08:00
scmutil.py scmutil: support background closing for write() 2016-02-20 15:24:12 -08:00
scmwindows.py windows: read all global config files, not just the first (issue4491) (BC) 2015-10-12 20:13:12 +02:00
setdiscovery.py setdiscovery: use iterbatch interface instead of batch 2016-03-01 17:44:41 -05:00
similar.py similar: specify unit for ui.progress when operating on files 2016-03-11 22:29:20 +08:00
simplemerge.py merge: minimize conflicts when common base is not shown (issue4447) 2016-02-10 09:06:08 -08:00
sshpeer.py wireproto: make iterbatcher behave streamily over http(s) 2016-03-01 18:41:43 -05:00
sshserver.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
sslutil.py sslutil: add docstring to wrapsocket() 2016-03-27 13:13:19 -07:00
statichttprepo.py statichttprepo: implement __enter__ and __exit__ on httprangeheader 2016-01-02 15:33:01 -08:00
store.py treemanifests: fix streaming clone 2016-02-04 08:34:07 -08:00
streamclone.py merge with stable 2016-03-15 14:10:46 -07:00
strutil.py strutil: use absolute_import 2015-08-08 20:01:40 -07:00
subrepo.py merge with stable 2016-03-29 12:29:00 -05:00
tagmerge.py tagmerge: use absolute_import 2015-08-08 20:10:46 -07:00
tags.py tags: create new sortdict for performance reasons 2015-11-12 13:16:04 -08:00
templatefilters.py templatefilters: use templatefilter to mark a function as template filter 2016-03-30 02:10:44 +09:00
templatekw.py templatekw: use templatekeyword to mark a function as template keyword 2016-03-13 05:17:06 +09:00
templater.py templater: do not strip non-quote characters from template config 2016-03-27 17:42:19 +09:00
transaction.py transaction: abort transaction during hook exception 2016-01-19 15:18:21 -08:00
treediscovery.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
ui.py edit: allow to configure the suffix of the temporary filename 2016-03-20 13:55:41 -04:00
unionrepo.py unionrepo: properly handle hidden linkrev in revlog (issue5070) 2016-02-22 23:36:04 +01:00
url.py url: drop support for python2.5 2015-10-15 17:21:08 -04:00
util.h util.h: kill no longer needed definitions for Python < 2.6 2015-05-14 09:04:48 +02:00
util.py util: refactor getstackframes 2016-03-11 17:22:04 +00:00
verify.py verify: specify unit for ui.progress when checking files 2016-03-11 20:18:41 +08:00
win32.py win32: use absolute_import 2015-08-08 18:52:59 -07:00
windows.py windows: correct the import of win32 2015-12-16 13:33:43 -05:00
wireproto.py bundle: move writebundle() from changegroup.py to bundle2.py (API) 2016-03-28 14:41:29 -07:00
worker.py worker: document poor partitioning scheme impact 2016-02-27 21:43:17 -08:00