Closed Bug 1894257 Opened 6 months ago Closed 6 months ago

make the treestatus URL configurable in the treeclosure hg hook

Categories

(Developer Services :: Mercurial: hg.mozilla.org, task)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sheehan, Assigned: sheehan)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The URL for treestatus is currently a hard-coded string in the treeclosure.py Mercurial commit hook. We should make this value configurable so we can update the URL to the new value atomically during the migration.

Change treestatus_base_url from a hard-coded value to a value
pulled from the config. Set the previous value as the default
if no value is found in the configuration. This will have the effect
of keeping the current value as the default and allowing us to switch
to the new Lando-Treestatus by updating the global config on hgssh.
Register the new config option in the hgmo extension to avoid a
warning in the tests, since the hook is implemented as an old-style
hook.

Pushed by cosheehan@mozilla.com:
https://hg.mozilla.org/hgcustom/version-control-tools/rev/935c8fc77526
treeclosure: get treestatus_base_url from the config r=zeid

Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: