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

Re: Adding current svn revision to source automatically

From: JeremyP <jeremyp_at_jeremyp.net>
Date: Wed, 24 Dec 2008 10:30:11 +0000

On 21 Dec 2008, at 23:29, Kenneth Goldman wrote:

> JeremyP <jeremyp_at_jeremyp.net> wrote on 12/19/2008 11:37:16 AM:
> >
> > On 19 Dec 2008, at 14:19, Kenneth Goldman wrote:
> > > The FAQ implies that svnversion returns a number, but it could
> > > worst case return a value of the form nnnn:nnnnM. The first
> > > nnnn evidently refers to the version in other parts of the
> > > project. The M indicates that files aren't committed yet,
> > > common during development. sed filters these out.
> > >
> >
> > The first nnnn refers to the lowest revision of any file in your
> > working copy. Why do you bother to filter it and the M out?
>
> I filter it because this isn't C code:
>
> const unsigned int 1234:5678M;

const char* revision = "1234:5678M";

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=991436

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-24 11:31:07 CET

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.