Mercurial > public > mercurial-scm > hg
diff mercurial/bookmarks.py @ 48599:dfbfa802876b
requirements: move "bookmark in store" requirements in the right module
There seems to be no reasons to not have it with the others.
Differential Revision: https://phab.mercurial-scm.org/D12030
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 17 Jan 2022 19:18:20 +0100 |
parents | b56858d85a7b |
children | 21ac6aedd5e5 |
line wrap: on
line diff
--- a/mercurial/bookmarks.py Mon Jan 17 18:51:47 2022 +0100 +++ b/mercurial/bookmarks.py Mon Jan 17 19:18:20 2022 +0100 @@ -22,6 +22,7 @@ error, obsutil, pycompat, + requirements, scmutil, txnutil, util, @@ -36,11 +37,9 @@ # custom styles activebookmarklabel = b'bookmarks.active bookmarks.current' -BOOKMARKS_IN_STORE_REQUIREMENT = b'bookmarksinstore' - def bookmarksinstore(repo): - return BOOKMARKS_IN_STORE_REQUIREMENT in repo.requirements + return requirements.BOOKMARKS_IN_STORE_REQUIREMENT in repo.requirements def bookmarksvfs(repo):