Sat, 29 Nov 2014 16:42:14 +0200
- fix previous commit
hgpoll.py | file | annotate | diff | comparison | revisions |
--- a/hgpoll.py Sat Nov 29 16:37:36 2014 +0200 +++ b/hgpoll.py Sat Nov 29 16:42:14 2014 +0200 @@ -239,11 +239,8 @@ if not hgns.get_value ('track', default=True): return - usestable = repo_name == 'zandronum-stable' usesandbox = repo_name == 'zandronum-sandbox' or repo_name == 'zandronum-sandbox-stable' repo_owner = 'Torr_Samaho' if not usesandbox else 'crimsondusk' - repo_url = 'https://bitbucket.org/%s/%s' % (repo_owner, repo_name) - num_commits = 0 zanrepo = hgapi.Repo (repo_name) commit_data = [] delimeter = '@@@@@@@@@@' @@ -282,6 +279,12 @@ process_new_commits (repo_name, commit_data) def process_new_commits (repo_name, commit_data): + usestable = repo_name == 'zandronum-stable' + usesandbox = repo_name == 'zandronum-sandbox' or repo_name == 'zandronum-sandbox-stable' + repo_owner = 'Torr_Samaho' if not usesandbox else 'crimsondusk' + repo_url = 'https://bitbucket.org/%s/%s' % (repo_owner, repo_name) + num_commits = 0 + zanrepo = hgapi.Repo (repo_name) Irc.broadcast ('%d new commits on %s' % (len (commit_data), repo_name)) if len (commit_data) > 0: