mercurial/dirstate.py
changeset 41951 42dd69985778
parent 41676 0531dff73d0b
child 42304 9c6c0f736e1d
--- 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]