Skip to content
Snippets Groups Projects
Commit 42dd6998 authored by Martin von Zweigbergk's avatar Martin von Zweigbergk
Browse files

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
parent e7b84ffb
No related branches found
No related tags found
No related merge requests found
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment