sapling/hgext
Anton Shestakov 7e01618c4d highlight: add highlightfiles config option which takes a fileset (issue3005)
Highlight extension lacked a way to limit files by size, by extension, and/or
by any other part of file path. A good solution would be to use a fileset,
since it can check file path, extension and size (and more) in one expression.
So this change introduces such an option, highlighfiles, which takes a fileset
and on each request decides if the requested file should be highlighted.

The default "size('<5M')" is, in a way, suggested in issue3005.

checkfctx() limits the amount of work to just one file (subset kwarg in
fileset.matchctx()).

Monkey-patching works around issue4568, otherwise using filesets here while
running hgweb in directory mode would say, for example, "Abort: **.py not under
root", but this fix is very local and probably far from ideal. I suspect there
to be a way to fix this for the whole hgweb and resolve the issue, but I don't
know how to do it.
2015-09-16 22:30:36 +08:00
..
convert convert: remove restriction on multiple --rev in hg source 2015-09-03 10:29:42 -07:00
highlight highlight: add highlightfiles config option which takes a fileset (issue3005) 2015-09-16 22:30:36 +08:00
largefiles largefiles: ensure lfutil.getstandinmatcher() only matches standins 2015-08-12 12:26:39 -04:00
zeroconf extensions: document that testedwith = 'internal' is special 2015-04-28 16:44:37 -04:00
__init__.py Re-add hgext/__init__.py 2005-09-29 12:49:01 -07:00
acl.py acl: mark deprecated config option 2015-06-25 17:36:46 -05:00
blackbox.py blackbox: add pid to output 2015-09-07 11:31:44 -07:00
bugzilla.py global: mass rewrite to use modern exception syntax 2015-06-23 22:20:08 -07:00
censor.py censor: make various path forms available like other Mercurial commands 2015-07-17 00:22:16 +09:00
children.py extensions: document that testedwith = 'internal' is special 2015-04-28 16:44:37 -04:00
churn.py global: mass rewrite to use modern exception syntax 2015-06-23 22:20:08 -07:00
color.py global: mass rewrite to use modern exception syntax 2015-06-23 22:20:08 -07:00
eol.py spelling: behaviour -> behavior 2015-08-28 10:53:55 -04:00
extdiff.py extdiff: enable -I/-X with --patch 2015-09-09 22:27:48 -04:00
factotum.py factotum: use try/except/finally 2015-05-15 09:54:56 -05:00
fetch.py extensions: document that testedwith = 'internal' is special 2015-04-28 16:44:37 -04:00
gpg.py gpg: mention undocumented options 2015-06-25 17:35:57 -05:00
graphlog.py extensions: document that testedwith = 'internal' is special 2015-04-28 16:44:37 -04:00
hgcia.py extensions: document that testedwith = 'internal' is special 2015-04-28 16:44:37 -04:00
hgk.py hgk: tweak doc format for path option 2015-06-25 17:37:14 -05:00
histedit.py histedit: fix grammar in cleanupnode comment 2015-09-08 20:30:01 -04:00
keyword.py extensions: document that testedwith = 'internal' is special 2015-04-28 16:44:37 -04:00
mq.py spelling: behaviour -> behavior 2015-08-28 10:53:55 -04:00
notify.py global: mass rewrite to use modern exception syntax 2015-06-23 22:20:08 -07:00
pager.py pager: drop python 2.4 hack around subprocess 2015-05-18 16:20:12 -05:00
patchbomb.py patchbomb: make sure all users of smtp.verifycert agree on the default 2015-07-17 13:41:07 -05:00
progress.py progress: restore testedwith to the stub 2015-08-25 15:52:54 -04:00
purge.py extensions: document that testedwith = 'internal' is special 2015-04-28 16:44:37 -04:00
rebase.py rebase: fix warning about ignoring tool option on rebase continue (issue4698) 2015-09-01 21:37:51 +02:00
record.py record: omit meaningless 'qrefresh' suggestion at 'hg qrefresh -i' 2015-07-15 04:45:58 +09:00
relink.py global: mass rewrite to use modern exception syntax 2015-06-23 22:20:08 -07:00
schemes.py extensions: document that testedwith = 'internal' is special 2015-04-28 16:44:37 -04:00
share.py share: make option docs more check-config friendly 2015-07-18 14:17:17 -05:00
shelve.py shelve: make maxbackup doc check-config friendly 2015-07-18 14:17:46 -05:00
strip.py extensions: document that testedwith = 'internal' is special 2015-04-28 16:44:37 -04:00
transplant.py transplant: restore dirstate correctly at unexpected failure 2015-07-30 06:22:09 +09:00
win32mbcs.py extensions: document that testedwith = 'internal' is special 2015-04-28 16:44:37 -04:00
win32text.py win32text: mark deprecated extension option deprecated 2015-06-25 17:42:45 -05:00