While I still can't explain the behaviour, I found that it stems from the $HOME environment-variable still pointing to my user's home-directory. If I
export HOME=/root
before executing mercurial commands, they work alright. The message that pointed me to this was:
not trusting file /home/jan/.hg/hgrc from untrusted user jan, group jan
which was displayed after calling hg init.