- make_commits_txt must be higher up..

Tue, 04 Nov 2014 17:07:46 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Tue, 04 Nov 2014 17:07:46 +0200
changeset 59
6a7199a714a1
parent 58
577cecfea94e
child 60
b2db21672012

- make_commits_txt must be higher up..

cobalt.py file | annotate | diff | comparison | revisions
--- a/cobalt.py	Tue Nov 04 17:04:22 2014 +0200
+++ b/cobalt.py	Tue Nov 04 17:07:46 2014 +0200
@@ -208,6 +208,25 @@
 	python = sys.executable
 	os.execl (python, python, * sys.argv)
 
+def make_commits_txt():
+	global g_needCommitsTxtRebuild
+
+	if g_needCommitsTxtRebuild == False:
+		return
+
+	print 'Building commits.txt...'
+	# Update zandronum-everything
+	repo = hgapi.Repo ('zandronum-everything')
+	repo.hg_command ('pull', '../zandronum-sandbox')
+	repo.hg_command ('pull', '../zandronum-sandbox-stable')
+
+	data = repo.hg_command ('log', '--template', '{node} {date(date, "%y%m%d-%H%M")}\n')
+	f = open ('commits.txt', 'w')
+	f.write (data)
+	f.close()
+	g_needCommitsTxtRebuild = False
+#enddef
+
 ' Check if a repository exists '
 def check_repo_exists (repo_name, repo_owner):
 	print 'Checking that %s exists...' % repo_name
@@ -305,25 +324,6 @@
 	return ''
 #enddef
 
-def make_commits_txt():
-	global g_needCommitsTxtRebuild
-
-	if g_needCommitsTxtRebuild == False:
-		return
-
-	print 'Building commits.txt...'
-	# Update zandronum-everything
-	repo = hgapi.Repo ('zandronum-everything')
-	repo.hg_command ('pull', '../zandronum-sandbox')
-	repo.hg_command ('pull', '../zandronum-sandbox-stable')
-
-	data = repo.hg_command ('log', '--template', '{node} {date(date, "%y%m%d-%H%M")}\n')
-	f = open ('commits.txt', 'w')
-	f.write (data)
-	f.close()
-	g_needCommitsTxtRebuild = False
-#enddef
-
 ' Retrieves and processes commits for zandronum repositories '
 ' Ensure both repositories are OK before using this! '
 def process_zan_repo_updates (repo_name):

mercurial