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

nobody at bestpractical.com nobody at bestpractical.com
Thu Jun 12 02:03:09 EDT 2008


Author: clkao
Date: Thu Jun 12 02:03:08 2008
New Revision: 2915

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

Log:
correct loc usage.


Modified: trunk/lib/SVK/Command/Branch.pm
==============================================================================
--- trunk/lib/SVK/Command/Branch.pm	(original)
+++ trunk/lib/SVK/Command/Branch.pm	Thu Jun 12 02:03:08 2008
@@ -86,7 +86,9 @@
 
     my ($proj,$target, $msg) = $self->locate_project(pop @arg);
     unless ($proj) {
-	$logger->warn( loc ($msg) );
+	$logger->warn( $msg );
+        # XXX: should we simply bail out here rather than having
+        # individual subcommand do error checking?
     }
     return ($proj, $target, @arg);
 }
@@ -161,7 +163,7 @@
 	}
     } else {
 	$proj = $self->load_project($target, $self->{project});
-	$msg = "No project found.";
+	$msg = loc( "No project found." );
     }
     return ($proj, $target, $msg);
 }


More information about the svk-commit mailing list