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

nobody at bestpractical.com nobody at bestpractical.com
Fri Jul 4 07:44:50 EDT 2008


Author: ruz
Date: Fri Jul  4 07:44:50 2008
New Revision: 2962

Modified:
   trunk/lib/SVK/Notify.pm

Log:
* if prop_status was called when $self->{status}{$path}
  was not defined then we were just ignoring new data

Modified: trunk/lib/SVK/Notify.pm
==============================================================================
--- trunk/lib/SVK/Notify.pm	(original)
+++ trunk/lib/SVK/Notify.pm	Fri Jul  4 07:44:50 2008
@@ -159,13 +159,13 @@
 
 sub prop_status {
     my ($self, $path, $s) = @_;
-    my $st = $self->{status}{$path};
+    my $st = $self->{status}{$path} ||= ['', ''];
     $st->[1] = $s if defined $s
 	# node status allow prop
 	&& !($st->[0] && ($st->[0] eq 'A' || $st->[0] eq 'R'))
 	    # not overriding things more informative
 	    && (!$st->[1] || $prop{$s} > $prop{$st->[1]});
-    return defined $st ? $st->[1] : undef;
+    return $st->[1];
 }
 
 sub hist_status {


More information about the svk-commit mailing list