Mercurial > hg-stable
changeset 47670:ec1d63e64448
dirstate: drop duplicated check
This is covered by the `@requires_parents_change` decorator that this function use.
Differential Revision: https://phab.mercurial-scm.org/D11125
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 15 Jul 2021 00:22:49 +0200 |
parents | 55c8e0d52eef |
children | 20f366db3e5f |
files | mercurial/dirstate.py |
diffstat | 1 files changed, 0 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dirstate.py Mon Jul 19 06:21:04 2021 +0200 +++ b/mercurial/dirstate.py Thu Jul 15 00:22:49 2021 +0200 @@ -560,9 +560,6 @@ depending of what information ends up being relevant and useful to other processing. """ - if not self.pendingparentchange(): - msg = b'calling `update_file` outside of a parentchange context' - raise error.ProgrammingError(msg) if merged and (clean_p1 or clean_p2): msg = b'`merged` argument incompatible with `clean_p1`/`clean_p2`' raise error.ProgrammingError(msg)