Changeset 46742 in webkit
- Timestamp:
- Aug 3, 2009 6:29:29 PM (15 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r46739 r46742 1 2009-08-03 Peter Kasting <pkasting@google.com> 2 3 Reviewed by David Kilzer. 4 5 https://bugs.webkit.org/show_bug.cgi?id=27323 6 Handle any kind of line endings in svn-apply and svn-unapply, instead 7 of assuming LF. 8 9 * Scripts/svn-apply: 10 * Scripts/svn-unapply: 11 1 12 2009-08-03 Adam Barth <abarth@webkit.org> 2 13 -
trunk/WebKitTools/Scripts/svn-apply
r46156 r46742 448 448 my $normalizedFullPath = File::Spec->catdir(File::Spec->splitdir($fullPath)); 449 449 while (<SVN>) { 450 chomp; 450 # Input may use a different EOL sequence than $/, so avoid chomp. 451 $_ =~ s/[\r\n]+$//g; 451 452 my $normalizedStatPath = File::Spec->catdir(File::Spec->splitdir(substr($_, 7))); 452 453 if ($normalizedFullPath eq $normalizedStatPath) { -
trunk/WebKitTools/Scripts/svn-unapply
r39852 r46742 95 95 } 96 96 $_ = &$filter($_) if $filter; 97 if (/^Index: (. *)/) {97 if (/^Index: (.+)/) { 98 98 $indexPath = $1; 99 99 if ($patch) { … … 221 221 return if !$patch; 222 222 223 unless ($patch =~ m|^Index: ([^\ n]+)|) {223 unless ($patch =~ m|^Index: ([^\r\n]+)|) { 224 224 my $separator = '-' x 67; 225 225 warn "Failed to find 'Index:' in:\n$separator\n$patch\n$separator\n"; … … 331 331 my $normalizedFullPath = File::Spec->catdir(File::Spec->splitdir($fullPath)); 332 332 while (<SVN>) { 333 chomp; 333 # Input may use a different EOL sequence than $/, so avoid chomp. 334 $_ =~ s/[\r\n]+$//g; 334 335 my $normalizedStatPath = File::Spec->catdir(File::Spec->splitdir(substr($_, 7))); 335 336 if ($normalizedFullPath eq $normalizedStatPath) {
Note: See TracChangeset
for help on using the changeset viewer.