# hgrc/ropublic -- repository configuration for read-only view of
# public committed history

[extensions]
clonebundles =
evolve =
topic =

[server]
# Serve only public changesets -- don't serve draft-phase changesets
# (or secret-phase, of which there should be none; and certainly not
# hidden changesets, which should not be possible for public-phase).
view = immutable

# Don't allow streaming clones without bundles.  These require taking a
# read lock on the repository, which holds up anyone else trying to
# push.
bundle2.stream = false
uncompressed = false

[web]
# Same as server.view, but for browsable hgweb front end.
view = immutable

# Publish via hgweb by default.
hidden = false

# Decline pushes more nicely.
deny_push = *

[hooks]
# Reject all pushes.  Updates from the primary are pushed through
# another view of the repository.
pretxnopen.rejectpush = python:__main__.rejectpush
prepushkey.rejectpush = python:__main__.rejectpush
