Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Oct 2011 22:47:55 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Craig Rodrigues <rodrigc@crodrigues.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: sys/conf/newvers.sh vs. subversion-1.7
Message-ID:  <4EA2590B.90008@FreeBSD.org>
In-Reply-To: <CAG=rPVeBQq5srTTjHDg-9Yc7R%2B5%2Buhm4BgzvhxEJ4KyN9ef%2B7w@mail.gmail.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/21/2011 22:42, Craig Rodrigues wrote:
> Hi,
> 
> I tried following:
> 
> (1)   Run svnversion in non-svn directory:
> 
>    return status == 0

Return status isn't everything. :)

>    prints out "exported"

In my case (1.7) it says "Unversioned directory"

But my point (which perhaps I should have made more explicit) is that
given the fact that svnversion handles non-svn directories gracefully
it's faster (simpler, etc.) to just run foo=`svnversion` and then make
sure that $foo is rational than it is to run 2 commands.

Doug

-- 

	Nothin' ever doesn't change, but nothin' changes much.
			-- OK Go

	Breadth of IT experience, and depth of knowledge in the DNS.
	Yours for the right price.  :)  http://SupersetSolutions.com/




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