Mercurial > hg
changeset 41951:42dd69985778
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
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 13 Mar 2019 10:51:40 -0700 |
parents | e7b84ffb06d9 |
children | b83de9150c1c |
files | mercurial/dirstate.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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]