Changeset 64072 in webkit
- Timestamp:
- Jul 26, 2010 1:58:03 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r64067 r64072 1 2010-07-26 Daniel Bates <dbates@rim.com> 2 3 Reviewed by Darin Adler. 4 5 svn-unapply warns of uninitialized variable when unapplying 6 a patch that describes an svn move operation 7 https://bugs.webkit.org/show_bug.cgi?id=42036 8 9 Fixes Perl uninitialized variable warnings when un-applying 10 a patch that moves a file. 11 12 * Scripts/svn-unapply: 13 - Modified patch() so that it initializes $patch to the empty 14 string when we don't have svnConvertedText (such as when 15 reversing a diff that represents a svn copy/move operation). 16 1 17 2010-07-26 Sam Weinig <sam@webkit.org> 2 18 -
trunk/WebKitTools/Scripts/svn-unapply
r59048 r64072 140 140 my ($diffHashRef) = @_; 141 141 142 my $patch = $diffHashRef->{svnConvertedText}; 142 # Make sure $patch is initialized to some value. There is no 143 # svnConvertedText when reversing an svn copy/move. 144 my $patch = $diffHashRef->{svnConvertedText} || ""; 143 145 144 146 my $fullPath = $diffHashRef->{indexPath}; … … 202 204 # code. In particular, svn-apply's scmRemove() subroutine 203 205 # should be used here. 204 unapplyPatch($patch, $fullPath, ["--force"]) ;206 unapplyPatch($patch, $fullPath, ["--force"]) if $patch; 205 207 unlink($fullPath) if -z $fullPath; 206 208 system "svn", "revert", $fullPath;
Note: See TracChangeset
for help on using the changeset viewer.