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

branchcache: do not accept "empty update"

This currently does not happens and it will be simpler that is remains that way.
If all update do something, we will be able to simply declare, in a later
changesets, that all update to result in a dirty branchcache.
parent 2b5f4013
No related branches found
No related tags found
2 merge requests!870Merge default into stable,!802small fixes around branchcache
......@@ -302,7 +302,8 @@
self._closednodes.add(cl.node(r))
max_rev = max(max_rev, r)
if max_rev < 0:
max_rev = None
msg = "running branchcache.update without revision to update"
raise error.ProgrammingError(msg)
# Delay fetching the topological heads until they are needed.
# A repository without non-continous branches can skip this part.
......
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