This is an archive of the discontinued Mercurial Phabricator instance.

copytrace: replace experimental.disablecopytrace config with copytrace (BC)
ClosedPublic

Authored by pulkit on Sep 4 2017, 6:56 PM.

Details

Summary

This patch replaces experimental.disablecopytrace with experimental.copytrace.
Since the words does not means the same, the default value is also changed. Now
experimental.copytrace defaults to 'off'. The new value is not boolean value as
we will be now having two different algorithms (current one and heuristics one
to be imported from fbext) so we need this to be have more options than
booleans.

The old config option is not kept is completely replaced as that was under
experimental and we don't gurantee BC to experimental things.

.. bc::

The config option for copytrace `experimental.disablecopytrace` is now
replaced with `experimental.copytrace` which defaults to `on`. If you need to
turn off copytracing, add `[experimental] copytrace = off` to your config.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Sep 4 2017, 6:56 PM
pulkit added a project: Restricted Project.Sep 5 2017, 11:01 AM
pulkit removed a project: Restricted Project.
yuja accepted this revision.Sep 6 2017, 9:53 AM
yuja added a subscriber: yuja.

experimental.copytrace defaults to 'off'. The new value is not boolean value as

s/off/on/ and queued, thanks.

mercurial/copies.py
366

This could be kept as configbool so any falsy value could be
specified, but I don't have strong preference.

731–732

Updated to use !=.

This revision is now accepted and ready to land.Sep 6 2017, 9:53 AM
This revision was automatically updated to reflect the committed changes.