Thank you all for your responses. The project is web application using
PHP. I initially looked at using the PECL SVN extension
(http://pecl.php.net/package/svn) so that I could access the SVN API
that way. However, there are several problems with that.
1. It's experimental
2. I want the users to be able to just drop the PHP source into their
server and go... but since this isn't part of the PHP core it would
require that the users build the svn module for their platform,
version of PHP, libraries etc. While experimenting I did manage to
compile a version on both Ubuntu and CentOS - but it wasn't easy.
Windows binaries only exist for a couple of very old versions of PHP,
(the http://pecl4win.php.net/ has been down for ages), and the PECL
installer seem to work with the SVN module on Windows, so it would
involve building PHP from scratch - something I haven't succeeded in
doing.
So, I had to give up on this route in the end and opt for an SVN
wrapper that calls subversion via command line calls. This is actually
working very well so far. I'm (hopefully) writing this in such a way
that the methods could be replaced by API calls in the future.
If anyone knows of a stable PHP SVN module, available cross platform,
that provides access to the SVN API I'd love to know about it...
Back to the --non-interactive command-line switch: While this was
first introduced at version 0.14.4, it appears it wasn't added to all
commands straight away. I have version 1.4.2 installed and this
doesn't allow the --non-interactive option on svn add. Is there a
particular place where the command line options are listed in the
source code for SVN? Perhaps I could check it out of source control
and verify the arguments that way?
Cheers.
On 18 February 2010 13:51, Stefan Sperling <stsp_at_elego.de> wrote:
> On Thu, Feb 18, 2010 at 08:42:10AM -0500, Andy Levy wrote:
>> On Wed, Feb 17, 2010 at 21:23, lasdka 88 <lasdka88_at_googlemail.com> wrote:
>> > I am trying to find out the version at which the --non-interactive
>> > option was added to svn add command. I've had a look through the
>> > release notes but I can't find it. I know that it was after 1.4.2. Is
>> > anyone able to help me?
>>
>> Features are very rarely added in minor point releases (1.4.x), so
>> most likely it was 1.5 or later.
>
> FWIW, it's in the CHANGES file:
> http://svn.apache.org/repos/asf/subversion/trunk/CHANGES
>
> Version 0.14.4 [Alpha Interim 4] (released 29 Oct 2002, revision 3553)
>
> User-visible changes:
> ...
> * new --non-interactive switch for commandline client
>
>> > In general, what is the best way of finding out the version at which a
>> > particular command line option was added? I am trying to write some
>> > software which uses subversion and is backwards compatible with older
>> > versions - and for that I need to know which options were available
>> > for the installed version.
>>
>> Rather than have this external dependency and have to "probe" for
>> features, why not roll the Subversion client libraries into your
>> software directly? Or at least use the language bindings (API) instead
>> of calling the command-line directly?
>
> Yes, I'd recommend that, too.
> Just write against the current 1.6.x API, and your software will continue
> to work until the day Subversion 2.0 is released (if ever...).
>
> Stefan
>
Received on 2010-02-18 19:23:41 CET