dirstate: remove obsolete reference to dirstate.beginparentchange
authorMartin von Zweigbergk <martinvonz@google.com>
Wed, 13 Mar 2019 10:51:40 -0700
changeset 41951 42dd69985778
parent 41950 e7b84ffb06d9
child 41952 b83de9150c1c
dirstate: remove obsolete reference to dirstate.beginparentchange The only valid API since 265e91da56fd (dirstate: drop deprecated methods (API), 2018-02-02) is the context manager returned from dirstate.parentchange(). Differential Revision: https://phab.mercurial-scm.org/D6126
mercurial/dirstate.py
--- a/mercurial/dirstate.py	Sat Mar 09 00:44:26 2019 +0000
+++ b/mercurial/dirstate.py	Wed Mar 13 10:51:40 2019 -0700
@@ -289,8 +289,8 @@
         See localrepo.setparents()
         """
         if self._parentwriters == 0:
-            raise ValueError("cannot set dirstate parent without "
-                             "calling dirstate.beginparentchange")
+            raise ValueError("cannot set dirstate parent outside of "
+                             "dirstate.parentchange context manager")
 
         self._dirty = True
         oldp2 = self._pl[1]