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

nobody at bestpractical.com nobody at bestpractical.com
Tue Apr 29 03:39:41 EDT 2008


Author: clsung
Date: Tue Apr 29 03:39:41 2008
New Revision: 2782

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

Log:
- fix buggy noise of 'svk br foo', where foo is not project-ed

Modified: trunk/lib/SVK/Command/Branch.pm
==============================================================================
--- trunk/lib/SVK/Command/Branch.pm	(original)
+++ trunk/lib/SVK/Command/Branch.pm	Tue Apr 29 03:39:41 2008
@@ -93,7 +93,15 @@
 
     my $proj = $self->load_project($target);
 
-    $logger->info( loc("Project mapped.  Project name: %1.\n", $proj->name));
+    if ($proj) {
+        $logger->info( loc("Project mapped.  Project name: %1.\n", $proj->name));
+    } else {
+        $target->root->check_path($target->path)
+            or die loc("Path %1 does not exist.\n", $target->depotpath);
+        $logger->info(
+            loc("Project not found. use 'svk branch --setup %1' to initial.\n", $target->depotpath)
+        );
+    }
 
     return;
 }


More information about the svk-commit mailing list