( )⚙ D1147 config: update evolution-related config

This is an archive of the discontinued Mercurial Phabricator instance.

config: update evolution-related config
ClosedPublic

Authored by lothiraldan on Oct 17 2017, 11:03 AM.

Details

Summary

Update the evolution helpers function to support both old-style configuration and
new-style configuration:

experimental.evolution=all is renamed into experimental.evolution=true

experimental.evolution=createmarkers is renamed into
experimental.evolution.createmarkers=true

experimental.evolution=allowunstable is renamed into
experimental.evolution.allowunstable=true

experimental.evolution=exchange is renamed into
experimental.evolution.exchange=true

We choose to not rename individual config options; keeping the same names
would easy the transition for users but it's something that could be easily
done in the future.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

lothiraldan created this revision.Oct 17 2017, 11:03 AM
indygreg accepted this revision.Oct 18 2017, 11:57 AM
indygreg added a subscriber: indygreg.

This seems reasonable and is a much, much more flexible approach.

mercurial/obsolete.py
145–146

It feels like we should automatically enable createmarkers in this scenario instead of being user hostile. But this can be done as a follow-up.

This revision is now accepted and ready to land.Oct 18 2017, 11:57 AM
This revision was automatically updated to reflect the committed changes.