'Change an entry in the hgweb.config file for a repository - this only happens when the owner changes the name of the repository.'

def change_entry(self, old_lhs, new_lhs, new_rhs):

    lock = threading.Lock()
    lock.acquire(True)
    try:
        self.make_backup()
        self.in_memory_config.remove_option('paths', old_lhs)
        self.in_memory_config.set('paths', new_lhs, new_rhs)
        self.write_config()
    except Exception as e:
        log.debug(('Exception    in    HgWebConfigManager.change_entry():    %s' % str(e)))
    finally:
        lock.release()
