Changes between Initial Version and Version 1 of SvnBot/Design


Ignore:
Timestamp:
Mar 11, 2006, 11:23:03 PM (19 years ago)
Author:
simon
Comment:

Added some description of SvnBot's use of XML-RPC

Legend:

Unmodified
Added
Removed
Modified
  • SvnBot/Design

    v1 v1  
     1= SvnBot Design =
     2
     3== Communication ==
     4SvnBot is controlled by sending it method calls using [http://www.xmlrpc.com/ XML-RPC], an [http://www.w3.org/XML/ XML] based encoding for remote procedure calls (RPC) over [http://www.w3.org/Protocols/ HTTP].  An XML-RPC client connects to SvnBot, sends a command to it, and SvnBot obeys by sending something to an IRC channel.  In Python, this is really simple to do.   Just instantiate a server object to connect to the bot, then call any method on that object to make it do something, like so:
     5{{{
     6#!python
     7import xmlrpclib, sys
     8s = xmlrpclib.Server('http://localhost:7080/')
     9s.showCommitSummary('123', 'simon')
     10}}}
     11If the above code seems familiar, it is probably because it is what the simplest [http://subversion.tigris.org/ Subversion] hook script for SvnBot does!