# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-03-31 17:13:05 # Node ID c1fac387819613e86ac79a49b6f638a72c63ba04 # Parent 912f4f64047fe35471e2441a87ef3cd7409d3c37 infinitepush: don't force ipv6 while connecting to mysql server Facebook internally enforces this but looks like we can't force this for pur users. Differential Revision: https://phab.mercurial-scm.org/D2992 diff --git a/hgext/infinitepush/sqlindexapi.py b/hgext/infinitepush/sqlindexapi.py --- a/hgext/infinitepush/sqlindexapi.py +++ b/hgext/infinitepush/sqlindexapi.py @@ -60,8 +60,7 @@ class sqlindexapi(indexapi.indexapi): retry = 3 while True: try: - self.sqlconn = mysql.connector.connect( - force_ipv6=True, **self.sqlargs) + self.sqlconn = mysql.connector.connect(**self.sqlargs) # Code is copy-pasted from hgsql. Bug fixes need to be # back-ported!