# hgrc/rodraft -- repository configuration for read-only replica of
# work-in-progress draft changesets

[extensions]
clonebundles =
evolve =
topic =

[server]
# Serve public-phase and draft-phase changesets, but not secret-phase
# changesets and not obsolete changesets.
view = visible

# 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 = visible

# Publish via hgweb by default.
hidden = false

# Decline pushes more nicely.
deny_push = *

[phases]
# Leave draft-phase changesets pulled from as such -- don't transition
# them to public-phase for the reader.
publish = false

[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
