mirror of
https://github.com/facebook/sapling.git
synced 2024-12-28 15:44:27 +03:00
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:
parent
eef0c650e7
commit
05f1ef73b2
@ -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))
|
||||
)
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user