Closed Bug 1567932 Opened 6 years ago Closed 6 years ago

[project-config] add an [excludes] instruction

Categories

(Localization Infrastructure and Tools :: compare-locales, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Pike, Assigned: Pike)

References

Details

Attachments

(1 file)

When splitting up localization work between a default config, and an exception config suite, it'd be nice to define the default by:

[[excludes]]
  path = "exception-config.toml"

This is easy to write down in toml, and it allows for config changes to be done in the exception config suite, w/out having to manage the opposite by defining inclusive rules.

How to actually implement this, not exactly as easy ;-)

I'm only going to add minimal support right now. In particular, I'm not going to support excludes inside excludes. I don't want to wrap my brain around that unless it's necessary. And it might only be implementable with a rather deep refactor.

Assignee: nobody → l10n
Summary: [project-config] add an [exclude] instruction → [project-config] add an [excludes] instruction

This allows for project configs to exclude other project configs.
This is now allowing for excludes to be in children or in other excludes.

pmac, can I get your review on this? I figured getting your review on this would get your feet wet on the technical details, and also set precise expectations on what's implemented.

There's one specific module here, mozpath, which is basically os.path with / as path separator, also on Windows. I took this from the Firefox build system, it makes matching path patterns a lot easier.

Flags: needinfo?(pmac)

I'll take a look. Never used Phabricator before, but it looks easy enough. Thanks for the ping. Leaving the NI so I won't forget.

Review is submitted.

Flags: needinfo?(pmac)
Attachment #9081892 - Attachment description: Bug 1567932, support [[excludes]] as top-level item in project config → Bug 1567932, support [[excludes]] as top-level item in project config, r=pmac
Attachment #9081892 - Attachment description: Bug 1567932, support [[excludes]] as top-level item in project config, r=pmac → Bug 1567932, support [[excludes]] as top-level item in project config, r=stas
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Regressions: 1606079
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: