Patchwork D2992: infinitepush: don't force ipv6 while connecting to mysql server

login
register
mail settings
Submitter phabricator
Date March 31, 2018, 5:15 p.m.
Message ID <ab8f6335292c64ee9158d0ca00803aa3@localhost.localdomain>
Download mbox | patch
Permalink /patch/30066/
State Not Applicable
Headers show

Comments

phabricator - March 31, 2018, 5:15 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc1fac3878196: infinitepush: don&#039;t force ipv6 while connecting to mysql server (authored by pulkit, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D2992?vs=7459&id=7469#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2992?vs=7459&id=7469

REVISION DETAIL
  https://phab.mercurial-scm.org/D2992

AFFECTED FILES
  hgext/infinitepush/sqlindexapi.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, indygreg
Cc: indygreg, mercurial-devel

Patch

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 @@ 
         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!