NOTE: %%PORTNAME%% has been patched to use %%PREFIX%%/etc/%%PORTNAME%% instead of /etc/mercurial-server Now you need to create %%HGUSER%% home (if nessacery) and run %%PREFIX%%/etc/hginit as %%HGUSER%% user from home directory