I think that the access right of EHG_STORE_DIR must be rw for group and not for other
Created attachment 99461 [details, diff] mercurial.patch
Created attachment 99464 [details, diff] mercurial.patch
Thanks, should be fixed now http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mercurial.eclass?r1=1.2&r2=1.3