This is an experimental copy for testing Poikilos' issue mirroring system. Note that Gitea's migration tool can import issues, but the "Issues" checkbox is disabled when "This repository will be a mirror" is enabled (it is for this repo).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

59 lines
1.5 KiB

#!/usr/bin/env python3
from __future__ import print_function
import sys
import os
from headcompare import (
error,
compareBranch,
defaultVirtualReposDir,
minetestPath,
gamesPath,
defaultGamePath,
profile,
)
me = os.path.basename(__file__)
def usage():
error("Usage:")
sys.stderr.write("Specify a branch")
parent = "Bucket_Game-base"
if os.path.isdir(parent):
error(" from Bucket_Game-base:")
for sub in os.listdir(parent):
subPath = os.path.join(parent, sub)
if sub.startswith("."):
continue
if os.path.isdir(subPath):
error(subPath)
else:
error(" from Bucket_Game-base.")
error("{} <branch name (see above)> [<bucket_game path>]".format(me))
error("")
def main():
global defaultGamePath
defaultGamePath = None
if len(sys.argv) < 2:
usage()
error("Error: You must provide a branch name.\n")
exit(1)
if len(sys.argv) > 3:
usage()
error("Error: There are too many arguments: {}.\n"
"".format(sys.argv))
exit(1)
if len(sys.argv) > 2:
defaultGamePath = sys.argv[2]
results = compareBranch(sys.argv[1], gamePath=defaultGamePath,
compareOld=True)
error("# ^ Do that to verify: they MUST match, and the first"
" directory must be unmodified from the original"
" release package.")
if __name__ == "__main__":
main()