Add hg configuration