Closed Bug 488400 Opened 15 years ago Closed 15 years ago

pork_barrel: Add logic to to filter patches, and ensure they're unique

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cjones, Assigned: cjones)

References

Details

Attachments

(1 file, 1 obsolete file)

pork_barrel.py just smashes all patches output from child processes into a single patch.  This means when a header is modified during the rewrite of more than one .ii file, the changes are duplicated in the final patch.  That shouldn't happen.

Instead, duplicated changes should be merged into a unique hunk, and conflicting changes should trigger an error.
pork_barrel will be split into two parts:

  * process_manager, which has all the old pork_barrel logic unchanged
  * pork_barrel, which contains pork-specific logic for managing patches, a la pork-barrel.cc

The interface to process_manager will identical to that of the former pork_barrel, down to the command line arguments accepted.
Summary: pork_barrel: Copy over logic from pork-barrel.cc to keep patches unique → pork_barrel: Add logic to to filter patches, and ensure they're unique
r? to Taras for the patch logic in pork_barrel
Attachment #372810 - Flags: review?(tglek)
Attachment #372810 - Flags: review?(dmandelin)
Comment on attachment 372810 [details] [diff] [review]
New pork_barrel + process_manager tag team

r? to David for process_manager
Comment on attachment 372810 [details] [diff] [review]
New pork_barrel + process_manager tag team

i think this is ok.
Attachment #372810 - Flags: review?(tglek) → review+
Attachment #372810 - Flags: review?(dmandelin) → review+
Will be committing soon as part of porky import.
Attachment #372810 - Attachment is obsolete: true
Pushed
8127f912e99c Chris Jones - bug 488400: add process_manager.py, make pork_barrel.py smarter. r=tglek, r=dmandelin
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: