( )⚙ D6877 merge: replace magic strings with NAMED_CONSTANTS (API)

This is an archive of the discontinued Mercurial Phabricator instance.

merge: replace magic strings with NAMED_CONSTANTS (API)
ClosedPublic

Authored by durin42 on Sep 25 2019, 11:10 AM.

Details

Summary

.. api::

`mercurial.hg.update*` and `mercurial.merge.update` now expect a value
from a set of NAMED_CONSTANTS (`merge.UPDATECHECK_*` constants)
rather than a collection of magic strings. As of now, the values
are the same, but code should be prepared for these values to
change in the future.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped