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

nobody at bestpractical.com nobody at bestpractical.com
Wed May 21 06:18:08 EDT 2008


Author: clsung
Date: Wed May 21 06:18:07 2008
New Revision: 2904

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

Log:
- to fix http://task.hm/ENH4
  - return and warn if user didn't specify branch name when --create

Modified: trunk/lib/SVK/Command/Branch.pm
==============================================================================
--- trunk/lib/SVK/Command/Branch.pm	(original)
+++ trunk/lib/SVK/Command/Branch.pm	Wed May 21 06:18:07 2008
@@ -255,6 +255,12 @@
 sub run {
     my ($self, $proj, $target, $branch_name) = @_;
     return unless $proj;
+    unless ($branch_name) {
+	$logger->info(
+	    loc("To create a branch, please specify svk branch --create <name>")
+	);
+	return;
+    }
 
     delete $self->{from} if $self->{from} and $self->{from} eq 'trunk';
     my $src_path = $proj->branch_path($self->{from} ? $self->{from} : 'trunk');


More information about the svk-commit mailing list