--- a/mercurial/localrepo.py Thu Mar 25 22:29:41 2021 -0400
+++ b/mercurial/localrepo.py Fri Apr 09 17:41:48 2021 -0400
@@ -73,6 +73,7 @@
txnutil,
util,
vfs as vfsmod,
+ wireprototypes,
)
from .interfaces import (
@@ -1495,6 +1496,8 @@
bundle2.getrepocaps(self, role=b'client')
)
caps.add(b'bundle2=' + urlreq.quote(capsblob))
+ if self.ui.configbool(b'experimental', b'narrow'):
+ caps.add(wireprototypes.NARROWCAP)
return caps
# Don't cache auditor/nofsauditor, or you'll end up with reference cycle: