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

exchange: deal with empty obscommon

The case can happen, we better support it.
parent c0b88040
No related branches found
No related tags found
3 merge requests!133evolve: fix some documentation grammar/typos,!132Topic/stable/evolve split nonlinear,!125exchange: deal with empty obscommon
Pipeline #
......@@ -5,6 +5,8 @@
-------------------
* obsexchange: avoid sending too large request to http server
* obsdiscovery: server no longer aborts with a 500 error if client sends a
request without obscommon
9.3.0 -- 2020-03-04
-------------------
......
......@@ -106,8 +106,10 @@
if heads is None:
heads = repo.heads()
obscommon = kwargs.get('evo_obscommon', ())
assert obscommon
obsset = repo.unfiltered().set(b'::%ln - ::%ln', heads, obscommon)
if obscommon:
obsset = repo.unfiltered().set(b'::%ln - ::%ln', heads, obscommon)
else:
obsset = repo.unfiltered().set(b'::%ln', heads)
subset = [c.node() for c in obsset]
else:
common = kwargs.get('common')
......
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