Re: sys/conf/newvers.sh vs. subversion-1.7

From: Craig Rodrigues <rodrigc_at_crodrigues.org>
Date: Fri, 21 Oct 2011 17:51:18 -0700
Hi,

Can you come up with a patch which invoke "svn info ." (if the svn
binary exists)?
This is slightly faster than svnversion.

If "svn info ." doesn't error out, you can assume that the directory
is under SVN control.

--
Craig Rodrigues
rodrigc_at_crodrigues.org

On Fri, Oct 21, 2011 at 2:12 PM, David Wolfskill <david_at_catwhisker.org> wrote:
> On Fri, Oct 21, 2011 at 04:36:05PM -0400, John Baldwin wrote:
>> ....
>> I'm not sure what the best fix is.  One could possibly always run svnversion
>> if it exists?
>
> Sure -- and use the result as long as the exit status is 0.  (It's
> certainly possible that svnversion exists, but the sources in question
> aren't in a subversion working copy, after all.)
>
> I could cobble up a patch to do that, if y'all like....
>
> Alternatively, see the more extended comments I made to Jilles' comments
> (to the PR) of a similar nature;
> <http://www.freebsd.org/cgi/query-pr.cgi?pr=161835>.  Summary: I believe
> that newvers.sh ought to be intrinsically SCM-agnostic.
>
> Peace,
> david
> --
> David H. Wolfskill                              david_at_catwhisker.org
> Depriving a girl or boy of an opportunity for education is evil.
>
> See http://www.catwhisker.org/~david/publickey.gpg for my public key.
>



-- 
Craig Rodrigues
rodrigc_at_crodrigues.org
Received on Fri Oct 21 2011 - 22:51:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:19 UTC