On 2004-10-27 10:58:44 -0400, Duncan Murdoch wrote:
> After the suggestions here, we're looking at having the people
> building the source tarballs and the binary builds include the version
> information.
>
> One small question: is there an easy way to convert a version number
> into the time of the corresponding commit?
>
> i.e. if I'm doing a build based on revision 1000, I'd like the
> timestamp in the build to give the time of the commit of that
> revision, rather than the time of the build (since there may have been
> more revisions, the clock on the build machine might not agree with
> the repository, etc.)?
>
> I just need a human readable string of some sort.
>
> Duncan Murdoch
If you have the build number in hand, you can do the following:
$ svn log -r1000 -q http://lynx/ec-svn | egrep '^r' | cut -d '|' -f 3
2004-04-07 15:34:39 -0400 (Wed, 07 Apr 2004)
If you are building from a working copy you can parse it out of svn
info:
$ svn info . | egrep '^Last Changed Date:'
Last Changed Date: 2004-04-07 15:34:39 -0400 (Wed, 07 Apr 2004)
-Dominic
- application/pgp-signature attachment: stored
Received on Wed Oct 27 17:24:14 2004