mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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:
parent
980829029a
commit
f2d5739705
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user