Add branch using
This commit is contained in:
9
main.py
9
main.py
@@ -570,14 +570,17 @@ def apply_commits(params, files, url):
|
||||
repl = req.find('replication')
|
||||
scheme = repl.get('scheme')
|
||||
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:
|
||||
scheme = new_scheme
|
||||
if branch:
|
||||
logging.warning(branch)
|
||||
con = OOConnectionParams(scheme, Config.oodb_host, Config.oodb_port, Config.oodb_dbname,
|
||||
Config.oodb_username, Config.oodb_passwd, scheme)
|
||||
ws = OODBWorkspace.ws(scheme)
|
||||
ws.setCurrentUser(bnd)
|
||||
if branch:
|
||||
logging.warning(branch)
|
||||
ws.switchBranch(branch)
|
||||
if not ws.isInit():
|
||||
res = ws.init(con)
|
||||
logger.warning(res)
|
||||
|
||||
Reference in New Issue
Block a user