equal
deleted
inserted
replaced
44 from mercurial.i18n import _ |
44 from mercurial.i18n import _ |
45 from mercurial.node import bin, short |
45 from mercurial.node import bin, short |
46 from mercurial import cmdutil, patch, templater, util, mail |
46 from mercurial import cmdutil, patch, templater, util, mail |
47 import email.Parser |
47 import email.Parser |
48 |
48 |
49 import xmlrpclib |
49 import socket, xmlrpclib |
50 from xml.sax import saxutils |
50 from xml.sax import saxutils |
51 |
51 |
52 socket_timeout = 30 # seconds |
52 socket_timeout = 30 # seconds |
53 try: |
53 if util.safehasattr(socket, 'setdefaulttimeout'): |
54 # set a timeout for the socket so you don't have to wait so looooong |
54 # set a timeout for the socket so you don't have to wait so looooong |
55 # when cia.vc is having problems. requires python >= 2.3: |
55 # when cia.vc is having problems. requires python >= 2.3: |
56 import socket |
|
57 socket.setdefaulttimeout(socket_timeout) |
56 socket.setdefaulttimeout(socket_timeout) |
58 except: |
|
59 pass |
|
60 |
57 |
61 HGCIA_VERSION = '0.1' |
58 HGCIA_VERSION = '0.1' |
62 HGCIA_URL = 'http://hg.kublai.com/mercurial/hgcia' |
59 HGCIA_URL = 'http://hg.kublai.com/mercurial/hgcia' |
63 |
60 |
64 |
61 |