Mercurial > public > mercurial-scm > hg-stable
diff mercurial/wireprotov1server.py @ 50371:7b723217d368 stable
clonebundles: filter out invalid schemes instead of failing on them
Previously, an invalid clonebundle scheme would result in a failed
clone. By specifying a list of schemes we support,
we can make sure adding a new scheme (like the one for inline clonebundles)
does not result in clones failing for older clients.
author | Mathias De Mare <mathias.de_mare@nokia.com> |
---|---|
date | Thu, 20 Apr 2023 11:23:45 +0200 |
parents | f254fc73d956 |
children | a41eeb877d07 |
line wrap: on
line diff
--- a/mercurial/wireprotov1server.py Thu Apr 20 10:48:12 2023 +0200 +++ b/mercurial/wireprotov1server.py Thu Apr 20 11:23:45 2023 +0200 @@ -380,7 +380,7 @@ if not manifest: return None res = bundlecaches.parseclonebundlesmanifest(repo, manifest) - res = bundlecaches.filterclonebundleentries(repo, res) + res = bundlecaches.filterclonebundleentries(repo, res, pullbundles=True) if not res: return None cl = repo.unfiltered().changelog