[svk-commit] r3155 - trunk/lib/SVK/Editor
nobody at bestpractical.com
nobody at bestpractical.com
Wed Mar 10 08:20:27 EST 2010
Author: clkao
Date: Wed Mar 10 08:20:20 2010
New Revision: 3155
Modified:
trunk/lib/SVK/Editor/PropEol.pm
Log:
Don't do eol normalization on unsetting props.
Submitted by: Peter Rabbitson
Modified: trunk/lib/SVK/Editor/PropEol.pm
==============================================================================
--- trunk/lib/SVK/Editor/PropEol.pm (original)
+++ trunk/lib/SVK/Editor/PropEol.pm Wed Mar 10 08:20:20 2010
@@ -67,14 +67,14 @@
sub change_file_prop {
my ($self, $path, $name, $value) = @_;
$value =~ s/\r\n/\n/g
- if $name =~ m'^svn:';
+ if defined $value && $name =~ m'^svn:';
$self->SUPER::change_file_prop($path, $name, $value);
}
sub change_dir_prop {
my ($self, $path, $name, $value) = @_;
$value =~ s/\r\n/\n/g
- if $name =~ m'^svn:';
+ if defined $value && $name =~ m'^svn:';
$self->SUPER::change_dir_prop($path, $name, $value);
}
More information about the svk-commit
mailing list