[svk-commit] r3014 - trunk/lib/SVK/Command

nobody at bestpractical.com nobody at bestpractical.com
Thu Jul 24 17:55:45 EDT 2008


Author: ruz
Date: Thu Jul 24 17:55:45 2008
New Revision: 3014

Modified:
   trunk/lib/SVK/Command/Diff.pm

Log:
* anchorify unless we find dir

Modified: trunk/lib/SVK/Command/Diff.pm
==============================================================================
--- trunk/lib/SVK/Command/Diff.pm	(original)
+++ trunk/lib/SVK/Command/Diff.pm	Thu Jul 24 17:55:45 2008
@@ -138,9 +138,8 @@
 	);
 
     $oldroot ||= $target->root;
-    my $kind = $oldroot->check_path($target->path_anchor);
     if ($target2->isa('SVK::Path::Checkout')) {
-	if ($kind != $SVN::Node::dir) {
+	while ($oldroot->check_path($target->path_anchor) != $SVN::Node::dir) {
 	    $target2->anchorify;
 	    $target->anchorify;
 	    ($report) = get_anchor (0, $report) if defined $report;
@@ -159,6 +158,7 @@
 	    );
     }
     else {
+        my $kind = $oldroot->check_path($target->path_anchor);
 	die loc("path %1 does not exist.\n", $target->report)
 	    if $kind == $SVN::Node::none;
 


More information about the svk-commit mailing list