|
|
@ -1,6 +1,6 @@
|
|
|
|
#!/usr/bin/env python3
|
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2018-2019 Lubuntu Team
|
|
|
|
# Copyright (C) 2018-2020 Lubuntu Team
|
|
|
|
|
|
|
|
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
@ -20,7 +20,6 @@ import tempfile
|
|
|
|
from phabricator import Phabricator
|
|
|
|
from phabricator import Phabricator
|
|
|
|
|
|
|
|
|
|
|
|
RELEASE = ""
|
|
|
|
RELEASE = ""
|
|
|
|
PASTRELEASE = ""
|
|
|
|
|
|
|
|
REPOLISTPATH = ""
|
|
|
|
REPOLISTPATH = ""
|
|
|
|
CLONEBASE = ""
|
|
|
|
CLONEBASE = ""
|
|
|
|
phab = Phabricator(host="" + "/api/", token="")
|
|
|
|
phab = Phabricator(host="" + "/api/", token="")
|
|
|
@ -33,7 +32,7 @@ with tempfile.TemporaryDirectory() as workingdir:
|
|
|
|
# Clone the repository and push the new branch
|
|
|
|
# Clone the repository and push the new branch
|
|
|
|
git.Git(workingdir).clone(CLONEBASE + repository + ".git")
|
|
|
|
git.Git(workingdir).clone(CLONEBASE + repository + ".git")
|
|
|
|
gitrepo = git.Repo(workingdir + "/" + repository)
|
|
|
|
gitrepo = git.Repo(workingdir + "/" + repository)
|
|
|
|
gitrepo.git.checkout("ubuntu/" + PASTRELEASE)
|
|
|
|
gitrepo.git.checkout("ci/stable")
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
gitrepo.git.branch("ubuntu/" + RELEASE)
|
|
|
|
gitrepo.git.branch("ubuntu/" + RELEASE)
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|