Mercurial > public > mercurial-scm > hg-stable
diff mercurial/bookmarks.py @ 33025:4b81776baa7a
commands: move activebookmarklabel to bookmarks module
This is going to be used in an upcoming patch that moves more methods to
bookmarks.py.
author | Sean Farley <sean@farley.io> |
---|---|
date | Tue, 20 Jun 2017 15:56:29 -0700 |
parents | ee081f91b179 |
children | f5f4c72de71a |
line wrap: on
line diff
--- a/mercurial/bookmarks.py Tue Jun 20 15:36:43 2017 -0700 +++ b/mercurial/bookmarks.py Tue Jun 20 15:56:29 2017 -0700 @@ -25,6 +25,12 @@ util, ) +# label constants +# until 3.5, bookmarks.current was the advertised name, not +# bookmarks.active, so we must use both to avoid breaking old +# custom styles +activebookmarklabel = 'bookmarks.active bookmarks.current' + def _getbkfile(repo): """Hook so that extensions that mess with the store can hook bm storage.