( )⚙ D5946 server: allow customizing the default repo filter

This is an archive of the discontinued Mercurial Phabricator instance.

server: allow customizing the default repo filter
ClosedPublic

Authored by joerg.sonnenberger on Feb 12 2019, 1:12 PM.

Details

Summary

hgweb has the (undocument) configuration option web.view that allows
restricting visible revisions to immutable. This is useful for serving
the same storage as publishing and non-publishing repo. Add the new
server.view option to serve the same purpose by changing the default
behavior of getdispatchrepo. Drop the hard-coded 'served' filter in the
batch handler of v1 of the wire proto, this is a left-over from the days
before getdispatchrepo existed.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision was automatically updated to reflect the committed changes.