mercurial/httppeer.py
changeset 39629 a86d21e70b2b
parent 39628 a5de21c9e370
child 39630 9c2c77c73f23
equal deleted inserted replaced
39628:a5de21c9e370 39629:a86d21e70b2b
   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']