Mercurial > evolve
diff hgext/evolve.py @ 1278:5ff8a5d85b2b stable
getbundleobsmarker: prevent crash from filtered content (issue4616)
The discovery may discover common markers on non-served nodes. This lead to
crash when building the obsmarker part.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 21 Apr 2015 16:52:08 +0200 |
parents | c52c15100fb2 |
children | 064cf9ee4460 |
line wrap: on
line diff
--- a/hgext/evolve.py Tue Apr 21 17:37:19 2015 +0200 +++ b/hgext/evolve.py Tue Apr 21 16:52:08 2015 +0200 @@ -2657,7 +2657,7 @@ heads = repo.heads() obscommon = kwargs.get('evo_obscommon', ()) assert obscommon - obsset = repo.set('::%ln - ::%ln', heads, obscommon) + obsset = repo.unfiltered().set('::%ln - ::%ln', heads, obscommon) subset = [c.node() for c in obsset] markers = repo.obsstore.relevantmarkers(subset) exchange.buildobsmarkerspart(bundler, markers)