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
[email protected]

On Fri, Oct 21, 2011 at 2:12 PM, David Wolfskill <[email protected]> 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                              [email protected]
> 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
[email protected]
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[email protected]"

Reply via email to