def get_user_email(self, config_file=None):
        username = self.get_config_value('ui', 'username')
        if username:
            return author_email(username)
        return None
Returns user's email from global configuration file.
dataset/ETHPy150Open codeinn/vcs/vcs/backends/hg/repository.py/MercurialRepository.get_user_email