comparison mercurial/exchange.py @ 38835: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
comparison
equal deleted inserted replaced
38834:c83ad57627ae 38835:a232e6744ba3
32 narrowspec, 32 narrowspec,
33 obsolete, 33 obsolete,
34 phases, 34 phases,
35 pushkey, 35 pushkey,
36 pycompat, 36 pycompat,
37 repository,
37 scmutil, 38 scmutil,
38 sslutil, 39 sslutil,
39 streamclone, 40 streamclone,
40 url as urlmod, 41 url as urlmod,
41 util, 42 util,
1430 return set(ctx.node() for ctx in res) 1431 return set(ctx.node() for ctx in res)
1431 while True: 1432 while True:
1432 old_heads = unficl.heads() 1433 old_heads = unficl.heads()
1433 clstart = len(unficl) 1434 clstart = len(unficl)
1434 _pullbundle2(pullop) 1435 _pullbundle2(pullop)
1435 if changegroup.NARROW_REQUIREMENT in repo.requirements: 1436 if repository.NARROW_REQUIREMENT in repo.requirements:
1436 # XXX narrow clones filter the heads on the server side during 1437 # XXX narrow clones filter the heads on the server side during
1437 # XXX getbundle and result in partial replies as well. 1438 # XXX getbundle and result in partial replies as well.
1438 # XXX Disable pull bundles in this case as band aid to avoid 1439 # XXX Disable pull bundles in this case as band aid to avoid
1439 # XXX extra round trips. 1440 # XXX extra round trips.
1440 break 1441 break