Skip to content
Snippets Groups Projects
  • Gregory Szorc's avatar
    dedab036
    wireproto: use new peer interface · dedab036
    Gregory Szorc authored
    The wirepeer class provides concrete implementations of peer interface
    methods for calling wire protocol commands. It makes sense for this
    class to inherit from the peer abstract base class. So we change
    that.
    
    Since httppeer and sshpeer have already been converted to the new
    interface, peerrepository is no longer adding any value. So it has
    been removed. httppeer and sshpeer have been updated to reflect the
    loss of peerrepository and the inheritance of the abstract base
    class in wirepeer.
    
    The code changes in wirepeer are reordering of methods to group
    by interface.
    
    Some Python code in tests was updated to reflect changed APIs.
    
    .. api::
    
       peer.peerrepository has been removed. Use repository.peer abstract
       base class to represent a peer repository.
    
    Differential Revision: https://phab.mercurial-scm.org/D338
    dedab036
    History
    wireproto: use new peer interface
    Gregory Szorc authored
    The wirepeer class provides concrete implementations of peer interface
    methods for calling wire protocol commands. It makes sense for this
    class to inherit from the peer abstract base class. So we change
    that.
    
    Since httppeer and sshpeer have already been converted to the new
    interface, peerrepository is no longer adding any value. So it has
    been removed. httppeer and sshpeer have been updated to reflect the
    loss of peerrepository and the inheritance of the abstract base
    class in wirepeer.
    
    The code changes in wirepeer are reordering of methods to group
    by interface.
    
    Some Python code in tests was updated to reflect changed APIs.
    
    .. api::
    
       peer.peerrepository has been removed. Use repository.peer abstract
       base class to represent a peer repository.
    
    Differential Revision: https://phab.mercurial-scm.org/D338