Skip to content
Snippets Groups Projects
Commit 18c27534 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

branchcache: explicitly assert that copy is always about inheritance

This would catch cases where copy is used for something else if any existed.
parent 659f7666
No related branches found
No related tags found
2 merge requests!870Merge default into stable,!802small fixes around branchcache
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment