Changeset 43601 in webkit
- Timestamp:
- May 12, 2009 5:31:47 PM (15 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r43497 r43601 1 2009-05-12 David Kilzer <ddkilzer@apple.com> 2 3 Bug 21418: resolve-ChangeLogs should have a --continue option which does git rebase --continue 4 5 <https://bugs.webkit.org/show_bug.cgi?id=21418> 6 7 Reviewed by Darin Adler. 8 9 * Scripts/resolve-ChangeLogs: Added -c|--continue switch that 10 runs "git rebase --continue" before exiting the script. 11 (hasGitUnmergedFiles): Added. Returns true if there are 12 unmerged files in the git repository. 13 1 14 2009-05-11 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 15 -
trunk/WebKitTools/Scripts/resolve-ChangeLogs
r42146 r43601 47 47 sub fixMergedChangeLogs($;@); 48 48 sub fixOneMergedChangeLog($); 49 sub hasGitUnmergedFiles(); 49 50 sub mergeChanges($$$); 50 51 sub parseFixMerged($$;$); … … 62 63 63 64 my $fixMerged; 65 my $gitRebaseContinue = 0; 64 66 my $printWarnings = 1; 65 67 my $showHelp; 66 68 67 69 my $getOptionsResult = GetOptions( 70 'c|continue!' => \$gitRebaseContinue, 68 71 'f|fix-merged:s' => \&parseFixMerged, 69 72 'h|help' => \$showHelp, … … 83 86 print STDERR "ERROR: No ChangeLog files listed on command-line or found unmerged.\n"; 84 87 undef $getOptionsResult; 88 } elsif (defined $gitRebaseContinue && !$isGit) { 89 print STDERR "ERROR: --continue may only be used with a git repository\n"; 90 undef $getOptionsResult; 85 91 } elsif (defined $fixMerged && !$isGit) { 86 92 print STDERR "ERROR: --fix-merged may only be used with a git repository\n"; … … 92 98 print STDERR <<__END__; 93 99 Usage: @{[ basename($0) ]} [options] [path/to/ChangeLog] [path/to/another/ChangeLog ...] 100 -c|--[no-]continue run "git rebase --continue" after fixing ChangeLog 101 entries (default: --no-continue) 94 102 -f|--fix-merged [revision-range] fix git-merged ChangeLog entries; if a revision-range 95 103 is specified, run git filter-branch on the range … … 119 127 print STDERR "ERROR: Unknown combination of switches and arguments.\n"; 120 128 usageAndExit(); 129 } 130 131 if ($gitRebaseContinue) { 132 if (hasGitUnmergedFiles()) { 133 print "Unmerged files; skipping '$GIT rebase --continue'."; 134 } else { 135 print "Running '$GIT rebase --continue'...\n"; 136 print `$GIT rebase --continue`; 137 } 121 138 } 122 139 … … 381 398 } 382 399 400 sub hasGitUnmergedFiles() 401 { 402 my $output = `$GIT ls-files --unmerged`; 403 return $output ne ""; 404 } 405 383 406 sub mergeChanges($$$) 384 407 {
Note: See TracChangeset
for help on using the changeset viewer.