[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Global revision keyword

From: Dominic Anello <danello_at_danky.com>
Date: 2004-10-27 17:26:08 CEST

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

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.