mutation: allow instabilities if mutation is enabled

Summary:
Disallowing instabilities is a feature of evolution.  For mutation tracking
there is no problem with instabilities.

Reviewed By: quark-zju

Differential Revision: D19502221

fbshipit-source-id: c21a5021bf1a8b29abb6635928da50895e2cec33
This commit is contained in:
Mark Thomas 2020-01-24 14:45:01 -08:00 committed by Facebook Github Bot
parent 980829029a
commit f2d5739705

View File

@ -12,7 +12,7 @@
from __future__ import absolute_import
from . import error, node, obsolete, revset
from . import error, mutation, node, obsolete, revset
from .i18n import _
@ -48,6 +48,8 @@ def disallowednewunstable(repo, revs):
To allow new unstable changesets, set the config:
`experimental.evolution.allowunstable=True`
"""
if mutation.enabled(repo):
return revset.baseset()
allowunstable = obsolete.isenabled(repo, obsolete.allowunstableopt)
if allowunstable:
return revset.baseset()