Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Oct 2011 23:07:06 +0400
From:      Boris Samorodov <bsam@passap.ru>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        Garrett Cooper <yanegomi@gmail.com>, freebsd-current@freebsd.org
Subject:   Re: sys/conf/newvers.sh vs. subversion-1.7
Message-ID:  <4EA3145A.6020703@passap.ru>
In-Reply-To: <4EA30772.8090709@FreeBSD.org>
References:  <20111020114844.GK59810@albert.catwhisker.org> <20111020122121.GL59810@albert.catwhisker.org> <201110211636.05917.jhb@freebsd.org> <20111021211221.GV59810@albert.catwhisker.org> <CAG=rPVfD8EZYpD_SQES2%2B9uUeqGOaAhW3asJbVeGKeV3er2ZKw@mail.gmail.com> <4EA21842.5000808@FreeBSD.org> <CAG=rPVeBQq5srTTjHDg-9Yc7R%2B5%2Buhm4BgzvhxEJ4KyN9ef%2B7w@mail.gmail.com> <alpine.BSF.2.00.1110220801140.38610@toaster.local> <4EA30772.8090709@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
22.10.2011 22:12, Doug Barton пишет:
> On 10/22/2011 08:29, Garrett Cooper wrote:
>> $(svn info | awk '/^Revision:/ {print $2}')
> 
> 2 subshells and a pipe for this, vs. only 1 subshell for just running
> svnversion.
> 
> Anyone else want to propose a more complex solution when a simple and
> more effective one already exists? :)

I'm not an exert here, so I'm not sure which one and why did you call
"simple and more effective":
-----
% uname -a
FreeBSD bsam.tel.ru 9.0-BETA2 FreeBSD 9.0-BETA2 #32 r225746: Sat Sep 24
17:00:42 MSK 2011     bsam@bsam.tel.ru:/usr/obj/usr/src/sys/BB  i386
% time svnversion /usr/src
226160
svnversion /usr/src  8,80s user 7,12s system 16% cpu 1:34,16 total
% time (svn info /usr/src | awk '/^Revision:/ {print $2}')
226160
( svn info /usr/src | awk '/^Revision:/ {print $2}'; )  0,00s user 0,00s
system 16% cpu 0,013 total
-----

-- 
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve



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