# HG changeset patch # User Teemu Piippo # Date 1414627588 -7200 # Node ID dbef418cc1c83cd866fb4993f0e9a52da98077e8 # Parent 103f184951bb9170818a0e5e08d54112e1649682 - now clones sandbox correctly diff -r 103f184951bb -r dbef418cc1c8 cobalt.py --- a/cobalt.py Thu Oct 30 02:02:24 2014 +0200 +++ b/cobalt.py Thu Oct 30 02:06:28 2014 +0200 @@ -207,9 +207,9 @@ os.execl (python, python, * sys.argv) ' Check if a repository exists ' -def check_repo_exists (repo_name): +def check_repo_exists (repo_name, repo_owner): print 'Checking that %s exists...' % repo_name - repo_url = 'https://bitbucket.org/Torr_Samaho/' + repo_name + repo_url = 'https://bitbucket.org/%s/%s' % (repo_owner, repo_name) zanrepo = hgapi.Repo (repo_name) try: @@ -227,9 +227,9 @@ #tried #enddef -check_repo_exists ('zandronum') -check_repo_exists ('zandronum-stable') -check_repo_exists ('zandronum-sandbox') +check_repo_exists ('zandronum', 'Torr_Samaho') +check_repo_exists ('zandronum-stable', 'Torr_Samaho') +check_repo_exists ('zandronum-sandbox', 'crimsondusk') repocheck_timeout = {'zandronum':(time.time()) + 15, 'zandronum-stable':(time.time() + 15), 'zandronum-sandbox':(time.time()) + 15}