[svk-commit] r2743 - trunk/lib/SVK

nobody at bestpractical.com nobody at bestpractical.com
Mon Apr 21 22:49:16 EDT 2008


Author: clsung
Date: Mon Apr 21 22:49:15 2008
New Revision: 2743

Modified:
   trunk/lib/SVK/Project.pm

Log:
- when no such branch (like //local), try to br -l -all will have following error
  - Filesystem has no item: File not found: ....
- so return [] when no such path (may be created after br --create)

Modified: trunk/lib/SVK/Project.pm
==============================================================================
--- trunk/lib/SVK/Project.pm	(original)
+++ trunk/lib/SVK/Project.pm	Mon Apr 21 22:49:15 2008
@@ -97,6 +97,7 @@
 sub _find_branches {
     my ( $self, $root, $path ) = @_;
     my $pool    = SVN::Pool->new_default;
+    return [] if $SVN::Node::none == $root->check_path($path);
     my $entries = $root->dir_entries($path);
 
     my $trunk = SVK::Path->real_new(


More information about the svk-commit mailing list