Mercurial > public > mercurial-scm > hg-stable
diff mercurial/exchange.py @ 38874:a232e6744ba3
narrow: move requirement constant from changegroup to repository
As suggested by Gregory Szorc.
Differential Revision: https://phab.mercurial-scm.org/D4094
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 03 Aug 2018 11:02:34 -0700 |
parents | d99083996398 |
children | b0c73866c9fb |
line wrap: on
line diff
--- a/mercurial/exchange.py Fri Aug 03 12:35:23 2018 -0700 +++ b/mercurial/exchange.py Fri Aug 03 11:02:34 2018 -0700 @@ -34,6 +34,7 @@ phases, pushkey, pycompat, + repository, scmutil, sslutil, streamclone, @@ -1432,7 +1433,7 @@ old_heads = unficl.heads() clstart = len(unficl) _pullbundle2(pullop) - if changegroup.NARROW_REQUIREMENT in repo.requirements: + if repository.NARROW_REQUIREMENT in repo.requirements: # XXX narrow clones filter the heads on the server side during # XXX getbundle and result in partial replies as well. # XXX Disable pull bundles in this case as band aid to avoid