Mercurial > hg
comparison mercurial/dirstate.py @ 51135:88ef80210d67
cleanup: drop `dirstate.is_changing_parent` deprecated since 6.5
This was scheduled for removal, let us remove it.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 08 Nov 2023 22:10:26 +0100 |
parents | a63e1f7987a7 |
children | 79cd29d598af |
comparison
equal
deleted
inserted
replaced
51134:498017baa34b | 51135:88ef80210d67 |
---|---|
405 """Returns true if the dirstate is in the middle of a set of changes. | 405 """Returns true if the dirstate is in the middle of a set of changes. |
406 | 406 |
407 This returns True for any kind of change. | 407 This returns True for any kind of change. |
408 """ | 408 """ |
409 return self._changing_level > 0 | 409 return self._changing_level > 0 |
410 | |
411 def pendingparentchange(self): | |
412 return self.is_changing_parent() | |
413 | |
414 def is_changing_parent(self): | |
415 """Returns true if the dirstate is in the middle of a set of changes | |
416 that modify the dirstate parent. | |
417 """ | |
418 self._ui.deprecwarn(b"dirstate.is_changing_parents", b"6.5") | |
419 return self.is_changing_parents | |
420 | 410 |
421 @property | 411 @property |
422 def is_changing_parents(self): | 412 def is_changing_parents(self): |
423 """Returns true if the dirstate is in the middle of a set of changes | 413 """Returns true if the dirstate is in the middle of a set of changes |
424 that modify the dirstate parent. | 414 that modify the dirstate parent. |