[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Common name for transaction and revision object

From: Geoff Rowell <geoff.rowell_at_gmail.com>
Date: Thu, 22 Apr 2010 20:47:01 -0400

On Thu, Apr 22, 2010 at 10:01 AM, Giulio Troccoli
<Giulio.Troccoli_at_uk.linedata.com> wrote:
>> Giulio Troccoli <Giulio.Troccoli_at_uk.linedata.com> wrote:
>> >
>> > I'm writing the hooks for a new repository in Perl and I'm
>> exploring
>> > using
>> OO Perl. In both pre- and post-commit hooks I need the list
>> of files, the author and other similar information. My idea
>> was to define a class and create an instance of that class
>> given either the transaction number adn repository path or
>> the revision number and the repository URL. The 'new'
>> function will then initialise all the information I need
>> calling either svnlook or svn. For instance:
>> >
>> > my $transaction = new Transaction($txn, $repo_path);
>> >
>> > Or
>> >
>> > my $commit = new Commit($rev, $repo_url);
>> >
>> > As you can see they are almost the same, so it would be
>> nice to have a
>> single class (I could then check the second parameter to see
>> if it's a URL or a path and do things accordingly). But I
>> cannot come up with a single name that would encompass both,
>> and that's what I'm asking the list.
>> >
>> > So, any suggestions?
>>
>> Sounds like you're duplicating the Subversion Hook Framework.
>>
>> http://sourceforge.net/projects/svnhook
>>
>
> Well, not really. It's sounds like a very interesting project and I think it should be publicised more, but it's not really suitable for my case (I think).
>
> We use our in-house bug-tracking system and both pre- and post-commit hooks have to interact with that. This does not include only checking if the bug number is correct, but also if the issue has the correct status, if we are committing in the correct branch, etc. I'm sure that could be done with that framework (but please correct me if I'm wrong).
>
Hi Giulio,

I've added an "ExecuteCmd" action tag to version 2.1.3 that can be
used to execute system commands.

--
Geoff Rowell
geoff.rowell_at_gmail.com
Received on 2010-04-23 02:47:26 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.