Mercurial > public > mercurial-scm > hg-stable
diff mercurial/wireprotov1server.py @ 44765:3d5fb6cab832 stable
pullbundles: use unfiltered repo for head/base matching
The unfiltered view works even when changeset transistion from draft to
hidden phase. The normal visibility is already ensured by discovery as
invisible heads would have been filtered out before. Skipping the
filtering has a positive impact on performance, too.
Differential Revision: https://phab.mercurial-scm.org/D8481
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Fri, 24 Apr 2020 20:00:25 +0200 |
parents | 1d1232c0726f |
children | c93dd9d9f1e6 |
line wrap: on
line diff
--- a/mercurial/wireprotov1server.py Thu May 07 03:14:52 2020 -0700 +++ b/mercurial/wireprotov1server.py Fri Apr 24 20:00:25 2020 +0200 @@ -391,7 +391,7 @@ res = exchange.filterclonebundleentries(repo, res) if not res: return None - cl = repo.changelog + cl = repo.unfiltered().changelog heads_anc = cl.ancestors([cl.rev(rev) for rev in heads], inclusive=True) common_anc = cl.ancestors([cl.rev(rev) for rev in common], inclusive=True) compformats = clientcompressionsupport(proto)