Re: sys/conf/newvers.sh vs. subversion-1.7
On Fri, Oct 21, 2011 at 10:47 PM, Doug Barton <dougb@freebsd.org> wrote:
> On 10/21/2011 22:42, Craig Rodrigues wrote:
>> Hi,
>>
>> I tried following:
>>
>> (1) =A0 Run svnversion in non-svn directory:
>>
>> =A0 =A0return status =3D=3D 0
>
> Return status isn't everything. :)
>
>> =A0 =A0prints 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=3D`svnversion` and then make
> sure that $foo is rational than it is to run 2 commands.
>
> Doug
Hi,
What logic can we use to make sure svnversion returns a rational value?
It looks like the output of svnversion for non-svn directories is
inconsistent between versions of Subversion.
Running a command seems like a better approach than looking for ".svn"
directories.
--=20
Craig Rodrigues
rodrigc@crodrigues.org
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 25 之 33 篇):