mercurial/wireprototypes.py
changeset 36613 6e585bca962e
parent 36609 abc3b9801563
child 36801 66de4555cefd
--- a/mercurial/wireprototypes.py	Tue Feb 27 15:23:04 2018 -0800
+++ b/mercurial/wireprototypes.py	Tue Feb 27 16:24:02 2018 -0800
@@ -137,3 +137,12 @@
     @abc.abstractmethod
     def client(self):
         """Returns a string representation of this client (as bytes)."""
+
+    @abc.abstractmethod
+    def addcapabilities(self, repo, caps):
+        """Adds advertised capabilities specific to this protocol.
+
+        Receives the list of capabilities collected so far.
+
+        Returns a list of capabilities. The passed in argument can be returned.
+        """