D6126: dirstate: remove obsolete reference to dirstate.beginparentchange

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Fri Mar 15 23:11:43 EDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG42dd69985778: dirstate: remove obsolete reference to dirstate.beginparentchange (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6126?vs=14483&id=14512

REVISION DETAIL
  https://phab.mercurial-scm.org/D6126

AFFECTED FILES
  mercurial/dirstate.py

CHANGE DETAILS

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -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]



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list