Patchwork D6126: dirstate: remove obsolete reference to dirstate.beginparentchange

login
register
mail settings
Submitter phabricator
Date March 16, 2019, 3:11 a.m.
Message ID <028dd1ed28bbea69c99c0690d8d9a1dc@localhost.localdomain>
Download mbox | patch
Permalink /patch/39275/
State Not Applicable
Headers show

Comments

phabricator - March 16, 2019, 3:11 a.m.
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




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

Patch

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]