[svk-commit] r3019 - in trunk: lib/SVK

nobody at bestpractical.com nobody at bestpractical.com
Tue Jul 29 18:01:44 EDT 2008


Author: clkao
Date: Tue Jul 29 18:01:44 2008
New Revision: 3019

Modified:
   trunk/lib/SVK/XD.pm
   trunk/t/23commit-local-file-to-add.t

Log:
Fix ? -> A bug when committing targets in current directory which
has empty $target->report.


Modified: trunk/lib/SVK/XD.pm
==============================================================================
--- trunk/lib/SVK/XD.pm	(original)
+++ trunk/lib/SVK/XD.pm	Tue Jul 29 18:01:44 2008
@@ -824,7 +824,7 @@
                     my ($path, $status) = @_;
                     to_native($path, 'path');
                     my $copath = $target->copath($path);
-                    my $report = $target->report->subdir($path);
+                    my $report = $target->report ? $target->report->subdir($path) : $path;
 
                     $target->contains_copath ($copath) or return;
                     die loc ("%1 already added.\n", $report)

Modified: trunk/t/23commit-local-file-to-add.t
==============================================================================
--- trunk/t/23commit-local-file-to-add.t	(original)
+++ trunk/t/23commit-local-file-to-add.t	Tue Jul 29 18:01:44 2008
@@ -45,12 +45,9 @@
 }
 
 
-TODO: {
-local $TODO = 'change ? to A';
-
 set_editor_add();
 is_output($svk, 'commit',[],
 	  ['Waiting for editor...',
 	   'A   boo',
 	   'Committed revision 4.']);
-}
+


More information about the svk-commit mailing list