Show More
@@ -32,10 +32,6 b' from mercurial import (' | |||
|
32 | 32 | wireprotoserver, |
|
33 | 33 | ) |
|
34 | 34 | |
|
35 | from . import ( | |
|
36 | narrowwirepeer, | |
|
37 | ) | |
|
38 | ||
|
39 | 35 | table = {} |
|
40 | 36 | command = registrar.command(table) |
|
41 | 37 | |
@@ -148,7 +144,7 b' def pullbundle2extraprepare(orig, pullop' | |||
|
148 | 144 | kwargs['excludepats'] = exclude |
|
149 | 145 | # calculate known nodes only in ellipses cases because in non-ellipses cases |
|
150 | 146 | # we have all the nodes |
|
151 |
if |
|
|
147 | if wireprotoserver.ELLIPSESCAP in pullop.remote.capabilities(): | |
|
152 | 148 | kwargs['known'] = [node.hex(ctx.node()) for ctx in |
|
153 | 149 | repo.set('::%ln', pullop.common) |
|
154 | 150 | if ctx.node() != node.nullid] |
@@ -13,7 +13,6 b' from mercurial import (' | |||
|
13 | 13 | |
|
14 | 14 | from . import ( |
|
15 | 15 | narrowdirstate, |
|
16 | narrowwirepeer, | |
|
17 | 16 | ) |
|
18 | 17 | |
|
19 | 18 | def wraprepo(repo): |
@@ -28,7 +27,7 b' def wraprepo(repo):' | |||
|
28 | 27 | def peer(self): |
|
29 | 28 | peer = super(narrowrepository, self).peer() |
|
30 | 29 | peer._caps.add(wireprotoserver.NARROWCAP) |
|
31 |
peer._caps.add( |
|
|
30 | peer._caps.add(wireprotoserver.ELLIPSESCAP) | |
|
32 | 31 | return peer |
|
33 | 32 | |
|
34 | 33 | repo.__class__ = narrowrepository |
@@ -14,8 +14,6 b' from mercurial import (' | |||
|
14 | 14 | wireprotov1server, |
|
15 | 15 | ) |
|
16 | 16 | |
|
17 | ELLIPSESCAP = 'exp-ellipses-1' | |
|
18 | ||
|
19 | 17 | def uisetup(): |
|
20 | 18 | extensions.wrapfunction(wireprotov1server, '_capabilities', addnarrowcap) |
|
21 | 19 | |
@@ -24,7 +22,7 b' def addnarrowcap(orig, repo, proto):' | |||
|
24 | 22 | caps = orig(repo, proto) |
|
25 | 23 | caps.append(wireprotoserver.NARROWCAP) |
|
26 | 24 | if repo.ui.configbool('experimental', 'narrowservebrokenellipses'): |
|
27 | caps.append(ELLIPSESCAP) | |
|
25 | caps.append(wireprotoserver.ELLIPSESCAP) | |
|
28 | 26 | return caps |
|
29 | 27 | |
|
30 | 28 | def reposetup(repo): |
General Comments 0
You need to be logged in to leave comments.
Login now