[PATCH] hgcia: accept "queued." xmlrpc return as success

Georg Brandl g.brandl at gmx.net
Sun Mar 6 04:41:17 CST 2011


On 06.03.2011 11:31, Georg Brandl wrote:
> # HG changeset patch
> # User Georg Brandl <georg at python.org>
> # Date 1299407457 -3600
> # Node ID e3bcaf3a111aa42cb980d31a795407425f99041d
> # Parent  37f487b9fbcc5c11dda8e7a16e9e8f758ae907c3
> hgcia: accept "queued." xmlrpc return as success
> 
> diff -r 37f487b9fbcc -r e3bcaf3a111a hgext/hgcia.py
> --- a/hgext/hgcia.py	Sun Mar 06 10:06:09 2011 +0100
> +++ b/hgext/hgcia.py	Sun Mar 06 11:30:57 2011 +0100
> @@ -198,7 +198,7 @@
>      def sendrpc(self, msg):
>          srv = xmlrpclib.Server(self.ciaurl)
>          res = srv.hub.deliver(msg)
> -        if res is not True:
> +        if res is not True and res != 'queued.':
>              raise util.Abort(_('%s returned an error: %s') %
>                               (self.ciaurl, res))

To explain that change a bit more: at some point in time (I think
this changeset was responsible:
http://code.google.com/p/cia-vc/source/detail?r=39 from January 23) cia.vc
started to return "queued."
instead of True for successful delivery.

Georg



More information about the Mercurial-devel mailing list