Changeset 51192 in webkit
- Timestamp:
- Nov 19, 2009 10:16:51 AM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r51188 r51192 1 2009-11-19 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Bugzilla-tool command classes should match command names 6 https://bugs.webkit.org/show_bug.cgi?id=31666 7 8 I renamed all the commands except CommitMessageForCurrentDiff because 9 the new name would conflict with an existing class. 10 11 * Scripts/bugzilla-tool: 12 1 13 2009-11-19 Pavel Feldman <pfeldman@chromium.org> 2 14 -
trunk/WebKitTools/Scripts/bugzilla-tool
r51176 r51192 106 106 107 107 108 class Bugs InCommitQueue(Command):108 class BugsToCommit(Command): 109 109 def __init__(self): 110 110 Command.__init__(self, "Bugs in the commit queue") … … 116 116 117 117 118 class Patches InCommitQueue(Command):118 class PatchesToCommit(Command): 119 119 def __init__(self): 120 120 Command.__init__(self, "Patches in the commit queue") … … 127 127 128 128 129 class ReviewedPatches OnBug(Command):129 class ReviewedPatches(Command): 130 130 def __init__(self): 131 131 Command.__init__(self, "r+\'d patches on a bug", "BUGID") … … 179 179 180 180 181 class ApplyPatches FromBug(Command):181 class ApplyPatches(Command): 182 182 def __init__(self): 183 183 options = WebKitApplyingScripts.apply_options() + WebKitLandingScripts.cleaning_options() … … 356 356 357 357 358 class Land AndUpdateBug(Command):358 class LandDiff(Command): 359 359 def __init__(self): 360 360 options = [ … … 454 454 455 455 456 class LandPatches FromBugs(AbstractPatchLandingCommand):456 class LandPatches(AbstractPatchLandingCommand): 457 457 def __init__(self): 458 458 AbstractPatchLandingCommand.__init__(self, "Lands all patches on the given bugs, optionally building and testing them first", "BUGID [BUGIDS]") … … 477 477 478 478 479 class ObsoleteAttachments OnBug(Command):479 class ObsoleteAttachments(Command): 480 480 def __init__(self): 481 481 Command.__init__(self, "Marks all attachments on a bug as obsolete.", "BUGID") … … 489 489 490 490 491 class PostDiff AsPatchToBug(Command):491 class PostDiff(Command): 492 492 def __init__(self): 493 493 options = [ … … 529 529 530 530 531 class PostCommits AsPatchesToBug(Command):531 class PostCommits(Command): 532 532 def __init__(self): 533 533 options = [ … … 536 536 make_option("-m", "--description", action="store", type="string", dest="description", help="Description string for the attachment (default: description from commit message)"), 537 537 ] 538 options += PostDiff AsPatchToBug.posting_options()538 options += PostDiff.posting_options() 539 539 Command.__init__(self, "Attaches a range of local commits to bugs as patch files.", "COMMITISH", options=options, requires_local_commits=True) 540 540 … … 570 570 571 571 if options.obsolete_patches and bug_id not in have_obsoleted_patches: 572 PostDiff AsPatchToBug.obsolete_patches_on_bug(bug_id, tool.bugs)572 PostDiff.obsolete_patches_on_bug(bug_id, tool.bugs) 573 573 have_obsoleted_patches.add(bug_id) 574 574 … … 579 579 580 580 581 class Rollout Commit(Command):581 class Rollout(Command): 582 582 def __init__(self): 583 583 options = WebKitLandingScripts.land_options() … … 673 673 options.obsolete_patches = False 674 674 # FIXME: We should pass through --no-comment switch as well. 675 PostCommits AsPatchesToBug.execute(self, options, commit_ids[1:], tool)675 PostCommits.execute(self, options, commit_ids[1:], tool) 676 676 677 677 def create_bug_from_patch(self, options, args, tool): … … 713 713 714 714 715 class CheckTreeStatus(Command):715 class TreeStatus(Command): 716 716 def __init__(self): 717 717 Command.__init__(self, "Print out the status of the webkit builders.") … … 857 857 self.buildbot = BuildBot() 858 858 self.commands = [ 859 { "name" : "bugs-to-commit", "object" : Bugs InCommitQueue() },860 { "name" : "patches-to-commit", "object" : Patches InCommitQueue() },861 { "name" : "reviewed-patches", "object" : ReviewedPatches OnBug() },859 { "name" : "bugs-to-commit", "object" : BugsToCommit() }, 860 { "name" : "patches-to-commit", "object" : PatchesToCommit() }, 861 { "name" : "reviewed-patches", "object" : ReviewedPatches() }, 862 862 { "name" : "create-bug", "object" : CreateBug() }, 863 863 { "name" : "apply-attachment", "object" : ApplyAttachment() }, 864 { "name" : "apply-patches", "object" : ApplyPatches FromBug() },865 { "name" : "land-diff", "object" : Land AndUpdateBug() },864 { "name" : "apply-patches", "object" : ApplyPatches() }, 865 { "name" : "land-diff", "object" : LandDiff() }, 866 866 { "name" : "land-attachment", "object" : LandAttachment() }, 867 { "name" : "land-patches", "object" : LandPatches FromBugs() },867 { "name" : "land-patches", "object" : LandPatches() }, 868 868 { "name" : "check-style", "object" : CheckStyle() }, 869 869 { "name" : "commit-message", "object" : CommitMessageForCurrentDiff() }, 870 { "name" : "obsolete-attachments", "object" : ObsoleteAttachments OnBug() },871 { "name" : "post-diff", "object" : PostDiff AsPatchToBug() },872 { "name" : "post-commits", "object" : PostCommits AsPatchesToBug() },873 { "name" : "tree-status", "object" : CheckTreeStatus() },870 { "name" : "obsolete-attachments", "object" : ObsoleteAttachments() }, 871 { "name" : "post-diff", "object" : PostDiff() }, 872 { "name" : "post-commits", "object" : PostCommits() }, 873 { "name" : "tree-status", "object" : TreeStatus() }, 874 874 { "name" : "commit-queue", "object" : CommitQueue() }, 875 875 { "name" : "style-queue", "object" : StyleQueue() }, 876 { "name" : "rollout", "object" : Rollout Commit() },876 { "name" : "rollout", "object" : Rollout() }, 877 877 ] 878 878
Note: See TracChangeset
for help on using the changeset viewer.