When shrink-revlog is used as an extension, it would produce an error when switching back to stable because the script will try to execute itself.