[svk-commit] r3146 - trunk/lib/SVK
nobody at bestpractical.com
nobody at bestpractical.com
Wed Feb 4 03:18:03 EST 2009
Author: clsung
Date: Wed Feb 4 03:18:02 2009
New Revision: 3146
Modified:
trunk/lib/SVK/Project.pm
Log:
- avoid when we set empty value to any prop path, it will pass
- for example, we may not set the path of path-tag
Modified: trunk/lib/SVK/Project.pm
==============================================================================
--- trunk/lib/SVK/Project.pm (original)
+++ trunk/lib/SVK/Project.pm Wed Feb 4 03:18:02 2009
@@ -459,6 +459,7 @@
my $allprops = $root->node_proplist($from_local ? '/' : $prop_path);
my %projpaths = $self->_project_paths($allprops);
for my $path (sort { $b ne $a } keys %projpaths) { # reverse sort to ensure subsume
+ next unless length($path);
if ($pathobj->_to_pclass($prop_path.$path)->subsumes($pathobj->path) or
$pathobj->_to_pclass($pathobj->path)->subsumes($prop_path.$path)) {
my ($pname) = $projpaths{$path} =~ m/^svk:project:(.*?):path/;
More information about the svk-commit
mailing list