mirror of
https://github.com/facebook/sapling.git
synced 2025-01-08 14:46:47 +03:00
devel: officially deprecate dirstate.write without transaction argument
When we introduce the develwarning, we did not had an official deprecation API and infrastructure. We can now officially deprecate the old way with a version deadline.
This commit is contained in:
parent
f6e86ab7ff
commit
917636e516
@ -694,9 +694,9 @@ class dirstate(object):
|
||||
|
||||
filename = self._filename
|
||||
if tr is False: # not explicitly specified
|
||||
self._ui.develwarn('use dirstate.write with '
|
||||
self._ui.deprecwarn('use dirstate.write with '
|
||||
'repo.currenttransaction()',
|
||||
config='check-dirstate-write')
|
||||
'3.9')
|
||||
|
||||
if self._opener.lexists(self._pendingfilename):
|
||||
# if pending file already exists, in-memory changes
|
||||
|
Loading…
Reference in New Issue
Block a user