Changeset 47923 in webkit
- Timestamp:
- Sep 1, 2009 3:24:36 AM (15 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r47899 r47923 1 2009-09-01 Joseph Pecoraro <joepeck@webkit.org> 2 3 <http://webkit.org/b/28623> svn-[un]apply should change directories to the repository root before [un]applying 4 5 Reviewed by Eric Seidel. 6 7 Jump back and forth between the repository root directory (to apply) and the 8 directory the script was run from (to find the patch). 9 10 * Scripts/svn-apply: 11 * Scripts/svn-unapply: 12 1 13 2009-08-31 Adam Roben <aroben@apple.com> 2 14 -
trunk/WebKitTools/Scripts/svn-apply
r46742 r47923 122 122 ); 123 123 124 my $pathScriptWasRunFrom = Cwd::getcwd(); 125 my $pathForRepositoryRoot = determineVCSRoot(); 126 124 127 my %checkedDirectories; 125 128 my %copiedFiles; … … 227 230 { 228 231 my ($patch, $fullPath, $options) = @_; 232 chdir $pathForRepositoryRoot; 229 233 $options = [] if (! $options); 230 234 my $command = "patch " . join(" ", "-p0", @{$options}); … … 232 236 print PATCH $patch; 233 237 close PATCH; 238 chdir $pathScriptWasRunFrom; 234 239 235 240 my $exitCode = $? >> 8; -
trunk/WebKitTools/Scripts/svn-unapply
r46742 r47923 66 66 use Getopt::Long; 67 67 68 use FindBin; 69 use lib $FindBin::Bin; 70 use VCSUtils; 71 68 72 sub checksum($); 69 73 sub fixChangeLogPatch($); … … 80 84 exit 1; 81 85 } 86 87 my $pathScriptWasRunFrom = Cwd::getcwd(); 88 my $pathForRepositoryRoot = determineVCSRoot(); 82 89 83 90 my @copiedFiles; … … 134 141 } 135 142 136 revertDirectories(); 143 if (isSVN()) { 144 revertDirectories(); 145 } 137 146 138 147 exit 0; … … 290 299 sub revertDirectories() 291 300 { 301 chdir $pathForRepositoryRoot; 292 302 my %checkedDirectories; 293 303 foreach my $path (reverse sort keys %directoriesToCheck) { … … 354 364 { 355 365 my ($patch, $fullPath, $options) = @_; 366 chdir $pathForRepositoryRoot; 356 367 $options = [] if (! $options); 357 368 my $command = "patch " . join(" ", "-p0", "-R", @{$options}); … … 359 370 print PATCH $patch; 360 371 close PATCH; 372 chdir $pathScriptWasRunFrom; 361 373 } 362 374
Note: See TracChangeset
for help on using the changeset viewer.