comparison mercurial/bookmarks.py @ 27276:38024b75241a

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.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Sat, 05 Dec 2015 23:34:07 -0800
parents 6a1301e22bd7
children 9fbae70faf65
comparison
equal deleted inserted replaced
27275:f2cd240f2f7c 27276:38024b75241a
103 in a format equal to those of localtags. 103 in a format equal to those of localtags.
104 104
105 We also store a backup of the previous state in undo.bookmarks that 105 We also store a backup of the previous state in undo.bookmarks that
106 can be copied back on rollback. 106 can be copied back on rollback.
107 ''' 107 '''
108 msg = 'bm.write() is deprecated, use bm.recordchange(transaction)'
109 self._repo.ui.deprecwarn(msg, '3.7')
108 if self._clean: 110 if self._clean:
109 return 111 return
110 repo = self._repo 112 repo = self._repo
111 if (repo.ui.configbool('devel', 'all-warnings') 113 if (repo.ui.configbool('devel', 'all-warnings')
112 or repo.ui.configbool('devel', 'check-locks')): 114 or repo.ui.configbool('devel', 'check-locks')):