[Bps-public-commit] r11395 - SVN-PropDB/lib/Prophet/Sync/Source

clkao at bestpractical.com clkao at bestpractical.com
Wed Apr 2 08:22:43 EDT 2008


Author: clkao
Date: Wed Apr  2 08:21:56 2008
New Revision: 11395

Modified:
   SVN-PropDB/lib/Prophet/Sync/Source/SVN.pm

Log:
get separate pool for each replay.

Modified: SVN-PropDB/lib/Prophet/Sync/Source/SVN.pm
==============================================================================
--- SVN-PropDB/lib/Prophet/Sync/Source/SVN.pm	(original)
+++ SVN-PropDB/lib/Prophet/Sync/Source/SVN.pm	Wed Apr  2 08:21:56 2008
@@ -88,12 +88,14 @@
     # XXX TODO we should  be using a svn get_log call here rather than simple iteration
     # clkao explains that this won't deal cleanly with cases where there are revision "holes"
     for my $rev ( $first_rev .. $self->ra->get_latest_revnum ) {
+        my $pool = SVN::Pool->new_default;
         # This horrible hack is here because I have no idea how to pass custom variables into the editor
         $Prophet::Sync::Source::SVN::ReplayEditor::CURRENT_REMOTE_REVNO = $rev;
         $self->ra->replay( $rev, 0, 1, $handle_replayed_txn->() );
         push @results, $self->_recode_changeset( $last_editor->dump_deltas, $self->ra->rev_proplist($rev) );
 
     }
+    
     return \@results;
 }
 



More information about the Bps-public-commit mailing list