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

nobody at bestpractical.com nobody at bestpractical.com
Thu Oct 30 02:16:35 EDT 2008


Author: clkao
Date: Thu Oct 30 02:16:35 2008
New Revision: 3103

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

Log:
cleanup floating checkout code to avoid find_repos* calls.


Modified: trunk/lib/SVK/Command/Checkout.pm
==============================================================================
--- trunk/lib/SVK/Command/Checkout.pm	(original)
+++ trunk/lib/SVK/Command/Checkout.pm	Thu Oct 30 02:16:35 2008
@@ -133,8 +133,6 @@
 
     my $xd;
     if ($self->{floating}) {
-	my ($depotname) = $self->{xd}->find_depotname ($target->depotpath, 0);
-	my ($depotpath) = ($self->{xd}->find_repos ($target->depotpath, 0));
 	my $svkpath = catfile($copath, '.svk');
 
 	mkdir($copath)
@@ -143,7 +141,7 @@
 	$xd = SVK::XD->new ( giantlock => catfile($svkpath, 'lock'),
 			     statefile => catfile($svkpath, 'config'),
 			     svkpath => $svkpath,
-			     depotmap => { $depotname => $depotpath },
+			     depotmap => { $target->depotname => $target->repospath },
 			     floating => $copath,
 			   );
 	$xd->giant_lock;


More information about the svk-commit mailing list