obsolete: add option for disabling evolution

Summary:
Allow disabling of evolution and obsolescence markers by setting
`experiemental.evolution=obsolete`.

Reviewed By: quark-zju

Differential Revision: D19411232

fbshipit-source-id: 89601a93cff1f87d04b7230fcb6c1e91cf074e92
This commit is contained in:
Mark Thomas 2020-01-16 01:01:10 -08:00 committed by Facebook Github Bot
parent eef0c650e7
commit 05f1ef73b2
9 changed files with 10 additions and 9 deletions

View File

@ -834,7 +834,8 @@ def makestore(ui, repo):
kwargs[r"defaultformat"] = defaultformat
readonly = not isenabled(repo, createmarkersopt)
store = obsstore(repo.svfs, readonly=readonly, **kwargs)
if store and readonly:
obsolete = ui.config("experimental", "evolution") == "obsolete"
if store and readonly and not obsolete:
ui.warn(
_("obsolete feature not enabled but %i markers found!\n") % len(list(store))
)

View File

@ -2,7 +2,7 @@
$ setconfig extensions.treemanifest=!
$ enable amend rebase histedit fbhistedit remotenames
$ setconfig experimental.evolution=
$ setconfig experimental.evolution=obsolete
$ setconfig experimental.narrow-heads=true
$ setconfig visibility.enabled=true
$ setconfig mutation.record=true mutation.enabled=true mutation.date="0 0"

View File

@ -1,5 +1,5 @@
$ enable amend rebase remotenames
$ setconfig experimental.evolution=
$ setconfig experimental.evolution=obsolete
$ setconfig experimental.narrow-heads=true
$ setconfig visibility.enabled=true
$ setconfig mutation.record=true mutation.enabled=true mutation.date="0 0"

View File

@ -2,7 +2,7 @@
$ setconfig extensions.treemanifest=!
$ enable pushrebase amend remotenames
$ setconfig experimental.evolution=
$ setconfig experimental.evolution=obsolete
$ setconfig experimental.narrow-heads=true
$ setconfig visibility.enabled=true
$ setconfig mutation.record=true mutation.enabled=true mutation.date="0 0"

View File

@ -3,7 +3,7 @@
$ setconfig extensions.treemanifest=!
$ enable amend rebase histedit fbhistedit phabdiff absorb
$ setconfig ui.ssh="$PYTHON \"$TESTDIR/dummyssh\"" ui.interactive=true
$ setconfig experimental.evolution=
$ setconfig experimental.evolution=obsolete
$ setconfig visibility.enabled=true
$ setconfig mutation.record=true mutation.enabled=true mutation.date="0 0"

View File

@ -1,7 +1,7 @@
#chg-compatible
$ enable amend rebase remotenames
$ setconfig experimental.evolution=
$ setconfig experimental.evolution=obsolete
$ setconfig experimental.narrow-heads=true
$ setconfig visibility.enabled=true
$ setconfig mutation.record=true mutation.enabled=true mutation.date="0 0"

View File

@ -6,7 +6,7 @@
$ setconfig infinitepush.branchpattern="re:scratch/.*"
$ setconfig commitcloud.hostname=testhost
$ setconfig visibility.enabled=true
$ setconfig experimental.evolution=
$ setconfig experimental.evolution=obsolete
$ setconfig experimental.narrow-heads=true
$ setconfig mutation.record=true mutation.enabled=true mutation.user=test mutation.date="0 0"
$ setconfig remotefilelog.reponame=server

View File

@ -1,7 +1,7 @@
#chg-compatible
$ enable amend rebase reset
$ setconfig experimental.evolution=
$ setconfig experimental.evolution=obsolete
$ setconfig visibility.enabled=true
$ setconfig mutation.record=true mutation.enabled=true mutation.date="0 0"

View File

@ -1,7 +1,7 @@
#chg-compatible
$ enable amend rebase undo directaccess shelve
$ setconfig experimental.evolution=
$ setconfig experimental.evolution=obsolete
$ setconfig visibility.enabled=true
$ setconfig mutation.record=true mutation.enabled=true mutation.date="0 0"
$ setconfig hint.ack=undo