mercurial/httppeer.py
changeset 41315 a9b609fbe39c
parent 40426 588f1e9a4d16
child 42158 69921d02daaf
equal deleted inserted replaced
41314:15fd3069caa6 41315:a9b609fbe39c
   814     def requirecap(self, name, purpose):
   814     def requirecap(self, name, purpose):
   815         if self.capable(name):
   815         if self.capable(name):
   816             return
   816             return
   817 
   817 
   818         raise error.CapabilityError(
   818         raise error.CapabilityError(
   819             _('cannot %s; client or remote repository does not support the %r '
   819             _('cannot %s; client or remote repository does not support the '
   820               'capability') % (purpose, name))
   820               '\'%s\' capability') % (purpose, name))
   821 
   821 
   822     # End of ipeercapabilities.
   822     # End of ipeercapabilities.
   823 
   823 
   824     def _call(self, name, **args):
   824     def _call(self, name, **args):
   825         with self.commandexecutor() as e:
   825         with self.commandexecutor() as e: