mercurial/dirstate.py
changeset 47594 0cef28b121a4
parent 47593 f927ad5a4e2c
child 47599 cce51119bfe6
--- a/mercurial/dirstate.py	Thu Jul 08 03:03:34 2021 +0200
+++ b/mercurial/dirstate.py	Thu Jul 08 00:58:44 2021 +0200
@@ -85,7 +85,7 @@
 
 def requires_no_parents_change(func):
     def wrap(self, *args, **kwargs):
-        if not self.pendingparentchange():
+        if self.pendingparentchange():
             msg = 'calling `%s` inside of a parentchange context'
             msg %= func.__name__
             raise error.ProgrammingError(msg)