Date: Sat, 22 Oct 2011 12:24:41 -0700 From: Garrett Cooper <yanegomi@gmail.com> To: Doug Barton <dougb@FreeBSD.org> Cc: freebsd-current@freebsd.org, Boris Samorodov <bsam@passap.ru> Subject: Re: sys/conf/newvers.sh vs. subversion-1.7 Message-ID: <CE2F27D2-B1AE-413D-9E07-9535AC0FCD60@gmail.com> In-Reply-To: <4EA315C6.4040305@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> <4EA3145A.6020703@passap.ru> <4EA315C6.4040305@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 22, 2011, at 12:13 PM, Doug Barton wrote: > On 10/22/2011 12:07, Boris Samorodov wrote: >> 22.10.2011 22:12, Doug Barton =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>> On 10/22/2011 08:29, Garrett Cooper wrote: >>>> $(svn info | awk '/^Revision:/ {print $2}') >>>=20 >>> 2 subshells and a pipe for this, vs. only 1 subshell for just = running >>> svnversion. >>>=20 >>> Anyone else want to propose a more complex solution when a simple = and >>> more effective one already exists? :) >>=20 >> I'm not an exert here, so I'm not sure which one and why did you call >> "simple and more effective": >=20 > Please read the rest of this thread, where the fact that svnversion = does > more than what 'svn info' does, and that people find the more that it > does to be useful. >=20 > So "simpler" is "one command, not 2 or more," and "more effective" is > "provides more information, and people find that extra information > useful." :) I was just offering an alternative (improperly timed), and as dougb@ = pointed out, svnversion works better. Thanks, -Garrett=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CE2F27D2-B1AE-413D-9E07-9535AC0FCD60>