'Return an entry in the hgweb.config file for a repository'

def get_entry(self, lhs):

    self.read_config()
    try:
        entry = self.in_memory_config.get('paths', lhs)
    except ConfigParser.NoOptionError:
        try:
            self.read_config(force_read=True)
            entry = self.in_memory_config.get('paths', lhs)
        except ConfigParser.NoOptionError:
            raise Exception(('Entry    for    repository    %s    missing    in    file    %s.' % (lhs, self.hgweb_config)))
    return entry
