# HG changeset patch # User Augie Fackler # Date 1495142012 14400 # Node ID b2de7fced2fa50aed193910c3e07f05bb09e4c4b # Parent c568c187102fc72956e8f69955c4b493fe683321 dirstate: mark {begin,end}parentchange as deprecated (API) diff -r c568c187102f -r b2de7fced2fa mercurial/dirstate.py --- a/mercurial/dirstate.py Thu May 18 17:11:24 2017 -0400 +++ b/mercurial/dirstate.py Thu May 18 17:13:32 2017 -0400 @@ -124,6 +124,8 @@ prevents writing an incoherent dirstate where the parent doesn't match the contents. ''' + self._ui.deprecwarn('beginparentchange is obsoleted by the ' + 'parentchange context manager.', '4.3') self._parentwriters += 1 def endparentchange(self): @@ -131,6 +133,8 @@ dirstate parents. Once all parent changes have been marked done, the wlock will be free to write the dirstate on release. ''' + self._ui.deprecwarn('endparentchange is obsoleted by the ' + 'parentchange context manager.', '4.3') if self._parentwriters > 0: self._parentwriters -= 1