--- a/hgext/narrow/narrowcommands.py Sun Sep 30 16:11:35 2018 +0900
+++ b/hgext/narrow/narrowcommands.py Sun Sep 30 03:42:35 2018 +0530
@@ -29,6 +29,7 @@
repoview,
sparse,
util,
+ wireprotoserver,
)
from . import (
@@ -136,7 +137,7 @@
if repository.NARROW_REQUIREMENT not in repo.requirements:
return orig(pullop, kwargs)
- if narrowwirepeer.NARROWCAP not in pullop.remote.capabilities():
+ if wireprotoserver.NARROWCAP not in pullop.remote.capabilities():
raise error.Abort(_("server doesn't support narrow clones"))
orig(pullop, kwargs)
kwargs['narrow'] = True