Mercurial > hg
comparison tests/test-narrow-widen-no-ellipsis.t @ 40337:cb516a854bc7
narrow: only send the narrowspecs back if ACL in play
I am unable to think why we need to send narrowspecs back from the server. The
current state adds a 'narrow:spec' part to each changegroup which is generated
when narrow extension is enabled. So we are sending narrowspecs on pull also.
There is a problem with sending the narrowspecs the way we are doing it right
now. We add include and exclude as parameter of the 'narrow:spec' bundle2 part.
The the len of include or exclude string increase 255 which is obvious while
working on large repos, bundle2 generation code breaks. For more on that refer
issue5952 on bugzilla.
I was thinking why we need to send the narrowspecs back, and deleted the
'narrow:spec' bundle2 part generation code and found that only narrow-acl test
has some failure.
With this patch, we will only send the 'narrow:spec' bundle2 part if ACL is
enabled because the original narrowspecs in those cases can be a subset of
narrowspecs user requested.
There are phase related output change in couple of tests. The output change
shows that we are now dealing in public phases completely. So maybe sending the
narrow:spec bundle2 part was preventing phases being exchanged or phase bundle2
data being applied.
Differential Revision: https://phab.mercurial-scm.org/D4931
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Wed, 10 Oct 2018 17:36:59 +0300 |
parents | 8feae5b989bc |
children | a69d5823af6d |
comparison
equal
deleted
inserted
replaced
40336:d365e2b7aa2a | 40337:cb516a854bc7 |
---|---|
135 adding changesets | 135 adding changesets |
136 adding manifests | 136 adding manifests |
137 adding file changes | 137 adding file changes |
138 added 5 changesets with 4 changes to 2 files | 138 added 5 changesets with 4 changes to 2 files |
139 new changesets *:* (glob) | 139 new changesets *:* (glob) |
140 3 local changesets published | |
141 (run 'hg update' to get a working copy) | 140 (run 'hg update' to get a working copy) |
142 $ hg update -r 'desc("add wider")' | 141 $ hg update -r 'desc("add wider")' |
143 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 142 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
144 | 143 |
145 $ cat widest/f | 144 $ cat widest/f |