Author: Stephan <step...@stzal.com> Branch: Changeset: r373:2d3ad1d9eda1 Date: 2013-03-21 16:33 +0100 http://bitbucket.org/pypy/lang-js/changeset/2d3ad1d9eda1/
Log: changed version string to include hg id and build time diff --git a/js/builtins/js_global.py b/js/builtins/js_global.py --- a/js/builtins/js_global.py +++ b/js/builtins/js_global.py @@ -329,9 +329,21 @@ pass +def _make_version_string(): + import subprocess + import time + + repo_id = subprocess.check_output('hg id -i'.split()).strip() + current_time = time.asctime(time.gmtime()) + + return '1.0; Build: %s; %s' % (repo_id, current_time) + +_version_string = _make_version_string() + + @w_return def version(this, args): - return '1.0' + return _version_string # 15.1.2.1 _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit