Closed Bug 1143932 Opened 9 years ago Closed 9 years ago

Factor out code from emit_from_context

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox39 fixed)

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: Ms2ger, Assigned: Ms2ger)

Details

Attachments

(8 files, 1 obsolete file)

39 bytes, text/x-review-board-request
gps
: review+
Details
39 bytes, text/x-review-board-request
gps
: review+
Details
39 bytes, text/x-review-board-request
gps
: review+
Details
39 bytes, text/x-review-board-request
gps
: review+
Details
39 bytes, text/x-review-board-request
gps
: review+
Details
39 bytes, text/x-review-board-request
gps
: review+
Details
39 bytes, text/x-review-board-request
gps
: review+
Details
39 bytes, text/x-review-board-request
gps
: review+
Details
This function is way too big.
FWIW, I have a patch sitting somewhere to move library/program-related stuff to a separate function.
(it's probably outdated, though)
Attached file MozReview Request: bz://1143932/Ms2ger (obsolete) —
/r/5509 - Bug 1143932 - Factor out library handling code from emit_from_context; r=gps
/r/5511 - Bug 1143932 - Factor out test manifest processing code from emit_from_context; r=gps
/r/5513 - Bug 1143932 - Factor out sources processing code from emit_from_context; r=gps
/r/5515 - Bug 1143932 - Factor out jar manifest processing code from emit_from_context; r=gps
/r/5517 - Bug 1143932 - Factor out generated filed processing code from emit_from_context; r=gps
/r/5519 - Bug 1143932 - Factor out programs processing code from emit_from_context; r=gps
/r/5521 - Bug 1143932 - Factor out XPIDL processing code from emit_from_context; r=gps
/r/5523 - Bug 1143932 - Factor out test harness files processing code from emit_from_context; r=gps

Pull down these commits:

hg pull review -r 0e908fb0ec4ae4d00be8c5f950d5b275941a7db8
Attachment #8578343 - Flags: review?(gps)
https://reviewboard.mozilla.org/r/5517/#review4479

::: python/mozbuild/mozbuild/frontend/emitter.py
(Diff revision 1)
> +        if generated_files:

I typically prefer early return in these scenarios to avoid extra indentation. Feel free to fix it on the fly.
https://reviewboard.mozilla.org/r/5523/#review4485

::: python/mozbuild/mozbuild/frontend/emitter.py
(Diff revision 1)
> +        if test_harness_files:

Early return.
Comment on attachment 8578343 [details]
MozReview Request: bz://1143932/Ms2ger

https://reviewboard.mozilla.org/r/5507/#review4487

Review Board's rendering of detected content moving pretty much made this patch a no-brainer to review. I love using diff tools that aid me.
Attachment #8578343 - Flags: review?(gps) → review+
Attachment #8578343 - Attachment is obsolete: true
Attachment #8619773 - Flags: review+
Attachment #8619774 - Flags: review+
Attachment #8619775 - Flags: review+
Attachment #8619776 - Flags: review+
Attachment #8619777 - Flags: review+
Attachment #8619778 - Flags: review+
Attachment #8619779 - Flags: review+
Attachment #8619780 - Flags: review+
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: