Mercurial > hg
comparison mercurial/dirstate.py @ 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 | 0531dff73d0b |
children | 9c6c0f736e1d |
comparison
equal
deleted
inserted
replaced
41950:e7b84ffb06d9 | 41951:42dd69985778 |
---|---|
287 returned by the call. | 287 returned by the call. |
288 | 288 |
289 See localrepo.setparents() | 289 See localrepo.setparents() |
290 """ | 290 """ |
291 if self._parentwriters == 0: | 291 if self._parentwriters == 0: |
292 raise ValueError("cannot set dirstate parent without " | 292 raise ValueError("cannot set dirstate parent outside of " |
293 "calling dirstate.beginparentchange") | 293 "dirstate.parentchange context manager") |
294 | 294 |
295 self._dirty = True | 295 self._dirty = True |
296 oldp2 = self._pl[1] | 296 oldp2 = self._pl[1] |
297 if self._origpl is None: | 297 if self._origpl is None: |
298 self._origpl = self._pl | 298 self._origpl = self._pl |