Changes between Initial Version and Version 1 of SvnBot/Design
- Timestamp:
- Mar 11, 2006, 11:23:03 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SvnBot/Design
v1 v1 1 = SvnBot Design = 2 3 == Communication == 4 SvnBot 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 7 import xmlrpclib, sys 8 s = xmlrpclib.Server('http://localhost:7080/') 9 s.showCommitSummary('123', 'simon') 10 }}} 11 If the above code seems familiar, it is probably because it is what the simplest [http://subversion.tigris.org/ Subversion] hook script for SvnBot does!