Mercurial > hg-stable
changeset 51551:18c2753434f2
branchcache: explicitly assert that copy is always about inheritance
This would catch cases where copy is used for something else if any existed.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 08 Mar 2024 16:52:08 +0100 |
parents | 659f766629c8 |
children | dd5b5f99940d |
files | mercurial/branchmap.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/branchmap.py Sat Mar 09 02:07:15 2024 +0100 +++ b/mercurial/branchmap.py Fri Mar 08 16:52:08 2024 +0100 @@ -556,6 +556,7 @@ def copy(self, repo): """return a deep copy of the branchcache object""" + assert repo.filtername != self._filtername other = type(self)( repo=repo, # we always do a shally copy of self._entries, and the values is