[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: Kenneth Goldman <kgoldman_at_us.ibm.com>
Date: Sun, 21 Dec 2008 18:29:00 -0500

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;

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-22 17:16:22 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.