[svk-commit] r2601 - branches/bm/lib/SVK/Command

nobody at bestpractical.com nobody at bestpractical.com
Mon Nov 12 20:20:52 EST 2007


Author: clsung
Date: Mon Nov 12 20:20:49 2007
New Revision: 2601

Modified:
   branches/bm/lib/SVK/Command/Branch.pm

Log:
- fix if move dst is a directory, 
  - this may cause a branched moved inside another branch...

Modified: branches/bm/lib/SVK/Command/Branch.pm
==============================================================================
--- branches/bm/lib/SVK/Command/Branch.pm	(original)
+++ branches/bm/lib/SVK/Command/Branch.pm	Mon Nov 12 20:20:49 2007
@@ -218,6 +218,7 @@
     $src = $self->arg_uri_maybe($src_branch_path);
     $dst = $self->arg_depotpath($dst_branch_path);
     $SVN::Node::none == $dst->root->check_path($dst->path)
+	or $SVN::Node::dir == $dst->root->check_path($dst->path)
 	or die loc("Project branch already exists: %1 %2\n",
 	    $branch_path, $self->{local} ? '(in local)' : '');
 


More information about the svk-commit mailing list