Add branch using
This commit is contained in:
BIN
deps/pygost-5.12/dist/pygost-5.12-py3.11.egg
vendored
BIN
deps/pygost-5.12/dist/pygost-5.12-py3.11.egg
vendored
Binary file not shown.
9
main.py
9
main.py
@@ -570,14 +570,17 @@ def apply_commits(params, files, url):
|
|||||||
repl = req.find('replication')
|
repl = req.find('replication')
|
||||||
scheme = repl.get('scheme')
|
scheme = repl.get('scheme')
|
||||||
commit = repl.get('id')
|
commit = repl.get('id')
|
||||||
branch, new_scheme = get_branch(params['from'].replace('tcp://', ''), scheme)
|
bnd = params['from'].replace('tcp://', '')
|
||||||
|
branch, new_scheme = get_branch(bnd, scheme)
|
||||||
if new_scheme:
|
if new_scheme:
|
||||||
scheme = new_scheme
|
scheme = new_scheme
|
||||||
if branch:
|
|
||||||
logging.warning(branch)
|
|
||||||
con = OOConnectionParams(scheme, Config.oodb_host, Config.oodb_port, Config.oodb_dbname,
|
con = OOConnectionParams(scheme, Config.oodb_host, Config.oodb_port, Config.oodb_dbname,
|
||||||
Config.oodb_username, Config.oodb_passwd, scheme)
|
Config.oodb_username, Config.oodb_passwd, scheme)
|
||||||
ws = OODBWorkspace.ws(scheme)
|
ws = OODBWorkspace.ws(scheme)
|
||||||
|
ws.setCurrentUser(bnd)
|
||||||
|
if branch:
|
||||||
|
logging.warning(branch)
|
||||||
|
ws.switchBranch(branch)
|
||||||
if not ws.isInit():
|
if not ws.isInit():
|
||||||
res = ws.init(con)
|
res = ws.init(con)
|
||||||
logger.warning(res)
|
logger.warning(res)
|
||||||
|
|||||||
Reference in New Issue
Block a user