Random Perl/SVN Question

Jesse Vincent jesse at fsck.com
Fri Aug 22 22:23:44 BST 2008


On Aug 22, 2008, at 5:04 PM, Randy J. Ray wrote:

> (Sorry, no Buffy tie-in, despite several long seconds of trying to  
> find one...)
>
> I figure there's an equal or better chance of someone here having  
> done Perl work with SVN repos, as compared to any other forum I can  
> easily annoy...
>
> The core classes that come with subversion seem to be fairly mid- to  
> low-level, and what I need is the ability to analyze a specific  
> transaction (pre- or post-commit are equally acceptable for this  
> task). To be more specific, I need to know what files are part of  
> the transaction, and what their disposition is ("U", "D", "A",  
> etc.). Short of grep'd (or ack'ing) through the SVK sources, can  
> anyone suggest how this would be done with the core Perl/SVN classes?
>


You basically need to implement an SVN "Editor" which handles a set of  
events.

I reverse engineered (with a bunch of help from clkao) what we needed  
to do for Prophet::Replica::svn

http://code.bestpractical.com/bps-public/prophet/trunk

It should be a lot less code to go through than svk


More information about the london.pm mailing list