Author: Lars Wassermann <lars.wasserm...@gmail.com> Branch: Changeset: r351:5878891e9deb Date: 2013-04-29 19:39 +0200 http://bitbucket.org/pypy/lang-smalltalk/changeset/5878891e9deb/
Log: fixed typo calling get_commitid only once changed template because the day information is also recorded by the speedcenter diff --git a/benchmarks.py b/benchmarks.py --- a/benchmarks.py +++ b/benchmarks.py @@ -21,7 +21,7 @@ def build_data(executable, benchmark, result): # Mandatory fields return { - 'commitid': get_commitid(), + 'commitid': COMMIT_ID, 'branch': 'default', 'project': 'lang-smalltalk', 'executable': executable, @@ -92,7 +92,7 @@ def get_commitid(): try: pipe = subprocess.Popen( - ["hg", "log", "-l", "1", "--template", "{branch}-{rev} {date|shortdate}"], + ["hg", "log", "-l", "1", "--template", "{branch}-{rev}"], stdout=subprocess.PIPE ) if pipe.wait() == 0: @@ -110,6 +110,8 @@ pass raise Exception("commitid not found. not a git or hg repo") +COMMIT_ID = get_commitid() + def add(executable, benchmark, result): print "Saving result %s for executable %s, benchmark %s" % ( @@ -133,7 +135,7 @@ with open('update.st', 'w') as f: f.write('''Smalltalk snapshot: true andQuit: true.''') pipe = subprocess.Popen( - ['cogmtlinux/squeak%s images/%s ../update.st' % (suffix, SqueakImage)], + ['coglinux/squeak%s images/%s ../update.st' % (suffix, SqueakImage)], shell=True) pipe.wait() os.remove('update.st') _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit