diff --git a/mercurial/wireprotov2server.py b/mercurial/wireprotov2server.py --- a/mercurial/wireprotov2server.py +++ b/mercurial/wireprotov2server.py @@ -20,7 +20,6 @@ error, narrowspec, pycompat, - streamclone, util, wireprotoframing, wireprototypes, @@ -522,9 +521,8 @@ 'permissions': [entry.permission], } - if streamclone.allowservergeneration(repo): - caps['rawrepoformats'] = sorted(repo.requirements & - repo.supportedformats) + caps['rawrepoformats'] = sorted(repo.requirements & + repo.supportedformats) targets = getadvertisedredirecttargets(repo, proto) if targets: