Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Feb 2016 03:24:35 +1100 (EST)
From:      Ian Smith <smithi@nimnet.asn.au>
To:        Christoph Brinkhaus <c.brinkhaus@t-online.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: svn revision in uname
Message-ID:  <20160208024820.K51785@sola.nimnet.asn.au>
In-Reply-To: <20160207153505.GA1420@esprimo.local>
References:  <20160207223554.P51785@sola.nimnet.asn.au> <56B73E8C.5060501@FreeBSD.org> <20160207153505.GA1420@esprimo.local>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 7 Feb 2016 16:35:05 +0100, Christoph Brinkhaus wrote:
 > On Sun, Feb 07, 2016 at 12:54:36PM +0000, Matthew Seaman wrote:
 > > On 07/02/2016 12:11, Ian Smith wrote:
 > > > I've been using svnup for source updates for ages, and for my occasional 
 > > > use it works fine.  However one thing you don't get is the svn revision 
 > > > shown in uname, eg % uname -vm
 > > >  FreeBSD 9.3-STABLE #0: Thu Oct 29 03:18:26 EST 2015 
 > > >  root@x200.smithi.id.au:/usr/obj/usr/src/sys/GENERIC amd64

 > > % svnversion /usr/src
 > > 295073M
 > > 
 > > If that fails, it will try running svnliteversion, and then cycle
 > > through various different ways of extracting a version string from other
 > > VCSes until it gets a result.
 > 
 > The version svnlite is part of the system and 
 > does not need to be installed separately.

On 10.x - since 10.1 maybe? - but not on 9.x.

 > Here svnliteversion /usr/src works.

If you're pulling sources with svnlite, so it should :)  Conversion 
between using svn and svnup, either way, requires some care and cleaning 
up; generally best advice is not to try mixing these methods.

cheers, Ian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160208024820.K51785>