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

Georg Brandl georg at python.org
Sun Mar 6 04:31:57 CST 2011


# 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))
 


More information about the Mercurial-devel mailing list