[gmx-developers] Fwd: [gmx-commit] Gromacs source branch, master, updated. caa4b38bf48bcb1f6ea8a76a268d70f5ad9bc231
Berk Hess
hess at cbr.su.se
Fri Mar 5 13:29:52 CET 2010
Hi,
With the current git you already get something like this:
Reading file topol.tpr, VERSION c982fa65eadae65cc965 (mod) (single
precision)
I don't know if we would actually want this hash printed whenever a tool
reads a tpr file.
But for mdrun it is certainly useful.
Berk
Mark Abraham wrote:
> The implementation of improved version strings sounds useful.
>
> Should there be a similar thing for the tpx file version? I can
> imagine scenarios where you wouldn't want to silently run a .tpx file
> with an mdrun that didn't precisely match the grompp. At the moment
> you can add some number to the base version number to work around half
> the issues. Being able to identify a .tpx as "tpx version <xx> mod
> <versionstring> githash <blah>" (or similar) should have some uses.
>
> Mark
>
> -------- Original Message --------
> Subject: [gmx-commit] Gromacs source branch, master, updated.
> caa4b38bf48bcb1f6ea8a76a268d70f5ad9bc231
> Date: Fri, 05 Mar 2010 12:08:41 +0100
> From: gmx-commit at gromacs.org
> Reply-To: gmx-commit at gromacs.org
> To: gmx-commit at gromacs.org
>
> This is an automated email from the git hooks/post-receive script. It was
> generated because a ref change was pushed to the repository containing
> the project "Gromacs source".
>
> The branch, master has been updated
> via caa4b38bf48bcb1f6ea8a76a268d70f5ad9bc231 (commit)
> from e23004cd77b65b3d79b55ad9d1a6bed938be0e96 (commit)
>
> Those revisions listed above that are new to this repository have
> not appeared on any other notification email; so we list those
> revisions in full, below.
>
> - Log -----------------------------------------------------------------
> commit caa4b38bf48bcb1f6ea8a76a268d70f5ad9bc231
> Author: Teemu Murtola <teemu.murtola at cbr.su.se>
> Date: Fri Mar 5 11:41:55 2010 +0100
>
> Improved version strings.
>
> The "(mod)" flag in the version string is now called "-dirty", and
> the
> initial part gives the hardcoded version string from configure.ac
> instead of a tag name. The date is still hardcoded in
> configure.ac, as
> someone might want to change it locally (but currently this adds the
> dirty flag). However, the version string reported by tools
> contains the
> real date of the commit whose hash is reported (both options here are
> confusing, so I just picked this one). The output from any program
> with
> -version now also gives the version string, as well as the full
> hash of
> the last commit, possibly with the dirty flag, and the hash of the
> last
> commit that is known to come from git.gromacs.org.
>
> -----------------------------------------------------------------------
>
> Summary of changes:
> CMakeLists.txt | 2 +-
> configure.ac | 2 +-
> include/copyrite.h | 2 +
> src/gmxlib/.gitignore | 2 +-
> src/gmxlib/Makefile.am | 29 ++++--------------
> src/gmxlib/copyrite.c | 24 +++++++++++----
> src/gmxlib/genversion.sh | 42
> ++++++++++++++++++++++++++++
> src/gmxlib/statutil.c | 10 ++----
> src/{tools/g_select.c => gmxlib/version.h} | 24 +++++----------
> 9 files changed, 82 insertions(+), 55 deletions(-)
> create mode 100755 src/gmxlib/genversion.sh
> copy src/{tools/g_select.c => gmxlib/version.h} (79%)
>
>
> hooks/post-receive
More information about the gromacs.org_gmx-developers
mailing list