There is a Perl Subversion API, and a quick look at CPAN reveal this
Perl module: http://search.cpan.org/~mschwern/Alien-SVN-1.4.6.0/.
There's also an SVN:Look modules too:
http://search.cpan.org/~gnustavo/SVN-Look-0.15/lib/SVN/Look.pm. The
problem is that these particular Perl modules need access to a
compiler, and the compiled Subversion API which is written in C. In
many companies, you simply cannot use these Perl modules. This can be
a big problem if you are distributing your Perl script for developers
to use.
However, the command line access in Perl via the "open" command works
fine. The "svn" command has the option to produce XML output which
makes parsing the output very simple. You can also use "system"
commands or qx() to do things like "svn cp". The problem is that
svnlook (which you'd use for hooks) doesn't produce XML output which
makes it hard to parse.
On Tue, Nov 17, 2009 at 9:01 PM, TSR <svn_at_trodman.com> wrote:
> My experience is in perl, but willing to consider other
> scripting languages. Is there popular stable svn scripting
> library module for perl, python or ruby that we should be
> considering:
>
> Goal: write simple svn wrapper script for branching or tagging in
> perl, python or ruby
>
> my requirements:
>
> Write a simple command-line script probably under 100 lines
> that supports these actions:
>
> - create a specified svn branch
> - create a specified svn tag. (Possibly deducing tag location
> by swapping "trunk" with "tags".)
>
> support svn 1.6 repository or later
>
> Script to be invoked on the svn server for speed and per current
> "in house" policy.
>
> I have been asked to use a library approach, instead of directly
> calling (for ex) 'svn copy', because of the value that may added
> by the library method, and because the script may be easier to
> maintain and extend.
>
> Is there a popular stable svn scripting library module for perl,
> python or ruby that we should be considering?
>
> --
> thanks,
> Tom
>
> --
> Here are the cpan modules I'm looking at:
> http://www.connotea.org/user/zfyarpe/tag/tmp-9fz
> Here is a the larger list I first considered:
> http://www.connotea.org/user/zfyarpe/tag/svn-cpan
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2419254
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
>
--
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2419587
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-18 17:22:13 CET