[PATCH 7 of 7 v2] dirstate: mark {begin, end}parentchange as deprecated
Augie Fackler
raf at durin42.com
Fri May 19 17:38:47 EDT 2017
# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1495142012 14400
# Thu May 18 17:13:32 2017 -0400
# Node ID 712593263a6be0c7250a2f31dbb1693084410916
# Parent bf1e831b74a414ce05f006176c0f1d79a6f8dcd0
dirstate: mark {begin,end}parentchange as deprecated
diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -124,6 +124,8 @@ class dirstate(object):
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 @@ class dirstate(object):
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
More information about the Mercurial-devel
mailing list