[svk-commit] r2379 - in trunk/lib/SVK: Mirror/Backend

nobody at bestpractical.com nobody at bestpractical.com
Sun Apr 8 04:13:47 EDT 2007


Author: clkao
Date: Sun Apr  8 04:13:47 2007
New Revision: 2379

Modified:
   trunk/lib/SVK/Editor/MapRev.pm
   trunk/lib/SVK/Mirror/Backend/SVNRa.pm
   trunk/lib/SVK/Mirror/Backend/SVNSync.pm

Log:
Oops.

Modified: trunk/lib/SVK/Editor/MapRev.pm
==============================================================================
--- trunk/lib/SVK/Editor/MapRev.pm	(original)
+++ trunk/lib/SVK/Editor/MapRev.pm	Sun Apr  8 04:13:47 2007
@@ -86,8 +86,8 @@
         {   _editor        => [$editor],
             cb_resolve_rev => sub {
                 my ( $func, $rev ) = @_;
-                return $func =~ m/^add/ ? $rev : $target->revision;
-                }
+                return $func =~ m/^add/ ? $rev : $revision;
+	    }
         }
     );
 }

Modified: trunk/lib/SVK/Mirror/Backend/SVNRa.pm
==============================================================================
--- trunk/lib/SVK/Mirror/Backend/SVNRa.pm	(original)
+++ trunk/lib/SVK/Mirror/Backend/SVNRa.pm	Sun Apr  8 04:13:47 2007
@@ -511,7 +511,7 @@
 
 sub _get_sync_editor {
     my ($self, $editor, $target) = @_;
-    $editor = SVK::Editor::MapRev->wrap_without_copy($editor $target->revision);
+    $editor = SVK::Editor::MapRev->wrap_without_copy($editor, $target->revision);
 
     $editor = SVK::Editor::CopyHandler->new(
         _editor => $editor,

Modified: trunk/lib/SVK/Mirror/Backend/SVNSync.pm
==============================================================================
--- trunk/lib/SVK/Mirror/Backend/SVNSync.pm	(original)
+++ trunk/lib/SVK/Mirror/Backend/SVNSync.pm	Sun Apr  8 04:13:47 2007
@@ -108,14 +108,7 @@
 sub _get_sync_editor {
     my ($self, $editor, $target) = @_;
 
-    $editor = SVK::Editor::MapRev->new(
-        {   _editor        => [$editor],
-            cb_resolve_rev => sub {
-                my ( $func, $rev ) = @_;
-                return $func =~ m/^add/ ? $rev : $target->revision;
-                }
-        }
-    );
+    $editor = SVK::Editor::MapRev->wrap_without_copy($editor, $target->revision);
 
     return SVK::Editor::CopyHandler->new(
         _editor => $editor,


More information about the svk-commit mailing list