equal
deleted
inserted
replaced
800 # Maps to commands that are available. |
800 # Maps to commands that are available. |
801 if name in ('branchmap', 'getbundle', 'known', 'lookup', 'pushkey'): |
801 if name in ('branchmap', 'getbundle', 'known', 'lookup', 'pushkey'): |
802 return True |
802 return True |
803 |
803 |
804 # Other concepts. |
804 # Other concepts. |
805 if name in ('bundle2',): |
805 # TODO remove exchangev2 once we have a command implemented. |
|
806 if name in ('bundle2', 'exchangev2'): |
806 return True |
807 return True |
807 |
808 |
808 # Alias command-* to presence of command of that name. |
809 # Alias command-* to presence of command of that name. |
809 if name.startswith('command-'): |
810 if name.startswith('command-'): |
810 return name[len('command-'):] in self._descriptor['commands'] |
811 return name[len('command-'):] in self._descriptor['commands'] |