[prev in list] [next in list] [prev in thread] [next in thread] 

List:       svk-commit
Subject:    [svk-commit] r3103 - trunk/lib/SVK/Command
From:       nobody () bestpractical ! com
Date:       2008-10-30 6:16:35
Message-ID: 20081030061635.3D36B4D80C3 () diesel ! bestpractical ! com
[Download RAW message or body]

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;
_______________________________________________
svk-commit mailing list
svk-commit@bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/svk-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic