[Bps-public-commit] r11404 - in SVN-PropDB/lib/Prophet/Sync/Source: SVN

clkao at bestpractical.com clkao at bestpractical.com
Wed Apr 2 20:08:10 EDT 2008


Author: clkao
Date: Wed Apr  2 20:07:54 2008
New Revision: 11404

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

Log:
no more CURRENT_REMOTE_REVNO.


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 20:07:54 2008
@@ -91,7 +91,8 @@
         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;
+        $editor->{revision} = $rev;
+
         $self->ra->replay( $rev, 0, 1, $editor );
         push @results, $self->_recode_changeset( $editor->dump_deltas, $self->ra->rev_proplist($rev) );
 

Modified: SVN-PropDB/lib/Prophet/Sync/Source/SVN/ReplayEditor.pm
==============================================================================
--- SVN-PropDB/lib/Prophet/Sync/Source/SVN/ReplayEditor.pm	(original)
+++ SVN-PropDB/lib/Prophet/Sync/Source/SVN/ReplayEditor.pm	Wed Apr  2 20:07:54 2008
@@ -3,7 +3,6 @@
 
 package Prophet::Sync::Source::SVN::ReplayEditor;
 use base qw/SVN::Delta::Editor/;
-our $CURRENT_REMOTE_REVNO;
 
 =head1 NAME
 
@@ -30,7 +29,6 @@
 
 sub new {
     my $self = shift->SUPER::new(@_);
-    $self->{'revision'} = $CURRENT_REMOTE_REVNO;
     return $self;
 }
 
@@ -127,6 +125,7 @@
     $self->{'current_file_base_rev'} = $base_rev;
 
     my ( $stream, $pool );
+
     my ( $rev_fetched, $prev_props ) = $self->ra->get_file( $path, $self->{'revision'} - 1, $stream, $pool );
 
     $self->{'paths'}->{$path}->{fs_operation}    = 'update_file';



More information about the Bps-public-commit mailing list