scmutil: don't try to match modes on filesystems without modes (
issue3740)
hgwebdir: honor web.templates and web.static for static files (
issue3734)
zeroconf: use port from server instead of picking port from config (
issue3746)
In order to get the port, wrap create server instead of
hgweb_mod/hgwebdir_mod.
branchmap: enable caching for filtered version too
The `_branchcache` attribute is turned into a dictionary. Key are filter name and
value is a `branchcache` object. Unfiltered version is cached as `None` filter.
The attribute is renamed to `_branchcaches` to avoid confusion with the previous
one. Both old and new contents are dictionary even if their contents are
different. I prefer possible extension code to crash right away instead of just
messing the wrong dictionary.
As all different caches work isolated to each other, this code keeps the
previous behavior of using the unfiltered cache we nothing is filtered. This
is a cheap way to have cache collaborate and nullify potential impact in the
default case.