# HG changeset patch # User Pierre-Yves David # Date 1449387247 28800 # Node ID 38024b75241a56e8f94d4ba33e0aed2807e5b07e # Parent f2cd240f2f7ce6ab8efe6389bc45640b9b47ecf6 bookmark: deprecate 'bmstore.write' method This function does not collaborate with the transaction and must disappear. As we have likely a lot of third party users, we make it deprecated to let them some time to upgrade their code. Thanks goes to Laurent Charignon for cleanup the last remains of the 'write' method. diff -r f2cd240f2f7c -r 38024b75241a mercurial/bookmarks.py --- a/mercurial/bookmarks.py Sat Dec 05 23:05:49 2015 -0800 +++ b/mercurial/bookmarks.py Sat Dec 05 23:34:07 2015 -0800 @@ -105,6 +105,8 @@ We also store a backup of the previous state in undo.bookmarks that can be copied back on rollback. ''' + msg = 'bm.write() is deprecated, use bm.recordchange(transaction)' + self._repo.ui.deprecwarn(msg, '3.7') if self._clean: return repo = self._repo