deployment.verifyTag(options.srv_path)
- version = deployment.app_version
+ if options.force_version:
+ version = deployment.application.makeVersion(options.force_version)
+ else:
+ deployment.verifyVersion()
+ version = deployment.app_version
repo = version.application.repository(options.srv_path)
tag = version.scripts_tag
parser.add_option("--force", "-f", dest="force", action="store_true",
default=False, help="If .git or .scripts directory already exists,"
"delete them and migrate")
+ parser.add_option("--force-version", dest="force_version",
+ default=None, help="If .scripts-version tells lies, explicitly specify"
+ "a version to migrate to.")
options, args = parser.parse_all(argv)
if len(args) > 1:
parser.error("too many arguments")