Show More
@@ -579,10 +579,12 b' def _capabilitiesv2(repo, proto):' | |||||
579 | ): |
|
579 | ): | |
580 | continue |
|
580 | continue | |
581 |
|
581 | |||
|
582 | # pytype: disable=unsupported-operands | |||
582 | caps[b'commands'][command] = { |
|
583 | caps[b'commands'][command] = { | |
583 | b'args': args, |
|
584 | b'args': args, | |
584 | b'permissions': [entry.permission], |
|
585 | b'permissions': [entry.permission], | |
585 | } |
|
586 | } | |
|
587 | # pytype: enable=unsupported-operands | |||
586 |
|
588 | |||
587 | if entry.extracapabilitiesfn: |
|
589 | if entry.extracapabilitiesfn: | |
588 | extracaps = entry.extracapabilitiesfn(repo, proto) |
|
590 | extracaps = entry.extracapabilitiesfn(repo, proto) | |
@@ -608,7 +610,9 b' def _capabilitiesv2(repo, proto):' | |||||
608 | if key in target: |
|
610 | if key in target: | |
609 | entry[key] = target[key] |
|
611 | entry[key] = target[key] | |
610 |
|
612 | |||
|
613 | # pytype: disable=attribute-error | |||
611 | caps[b'redirect'][b'targets'].append(entry) |
|
614 | caps[b'redirect'][b'targets'].append(entry) | |
|
615 | # pytype: enable=attribute-error | |||
612 |
|
616 | |||
613 | return proto.addcapabilities(repo, caps) |
|
617 | return proto.addcapabilities(repo, caps) | |
614 |
|
618 |
@@ -44,7 +44,6 b' mercurial/wireprotoframing.py # [unsuppo' | |||||
44 | mercurial/wireprotoserver.py # line 253, in _availableapis: No attribute '__iter__' on Callable[[Any, Any], Any] [attribute-error] |
|
44 | mercurial/wireprotoserver.py # line 253, in _availableapis: No attribute '__iter__' on Callable[[Any, Any], Any] [attribute-error] | |
45 | mercurial/wireprotov1peer.py # [attribute-error] |
|
45 | mercurial/wireprotov1peer.py # [attribute-error] | |
46 | mercurial/wireprotov1server.py # BUG?: BundleValueError handler accesses subclass's attrs |
|
46 | mercurial/wireprotov1server.py # BUG?: BundleValueError handler accesses subclass's attrs | |
47 | mercurial/wireprotov2server.py # [unsupported-operands], [attribute-error] |
|
|||
48 |
|
47 | |||
49 | TODO: use --no-cache on test server? Caching the files locally helps during |
|
48 | TODO: use --no-cache on test server? Caching the files locally helps during | |
50 | development, but may be a hinderance for CI testing. |
|
49 | development, but may be a hinderance for CI testing. | |
@@ -85,7 +84,6 b' development, but may be a hinderance for' | |||||
85 | > -x mercurial/wireprotoserver.py \ |
|
84 | > -x mercurial/wireprotoserver.py \ | |
86 | > -x mercurial/wireprotov1peer.py \ |
|
85 | > -x mercurial/wireprotov1peer.py \ | |
87 | > -x mercurial/wireprotov1server.py \ |
|
86 | > -x mercurial/wireprotov1server.py \ | |
88 | > -x mercurial/wireprotov2server.py \ |
|
|||
89 | > > $TESTTMP/pytype-output.txt || cat $TESTTMP/pytype-output.txt |
|
87 | > > $TESTTMP/pytype-output.txt || cat $TESTTMP/pytype-output.txt | |
90 |
|
88 | |||
91 | Only show the results on a failure, because the output on success is also |
|
89 | Only show the results on a failure, because the output on success is also |
General Comments 0
You need to be logged in to leave comments.
Login now