Patchwork D8141: darwin: add another preemptive gui() call when using chg

login
register
mail settings
Submitter phabricator
Date Feb. 21, 2020, 9:55 a.m.
Message ID <3f97b1bb983ce9a2f371e1832494d404@localhost.localdomain>
Download mbox | patch
Permalink /patch/45281/
State Not Applicable
Headers show

Comments

phabricator - Feb. 21, 2020, 9:55 a.m.
Closed by commit rHG6392bd7c26a8: darwin: add another preemptive gui() call when using chg (authored by spectral).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8141?vs=20265&id=20268

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8141/new/

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

AFFECTED FILES
  mercurial/commandserver.py

CHANGE DETAILS




To: spectral, #hg-reviewers, marmoute
Cc: marmoute, mercurial-devel

Patch

diff --git a/mercurial/commandserver.py b/mercurial/commandserver.py
--- a/mercurial/commandserver.py
+++ b/mercurial/commandserver.py
@@ -545,6 +545,10 @@ 
         if maxlen < 0:
             raise error.Abort(_(b'negative max-repo-cache size not allowed'))
         self._repoloader = repocache.repoloader(ui, maxlen)
+        # attempt to avoid crash in CoreFoundation when using chg after fix in
+        # a89381e04c58
+        if pycompat.isdarwin:
+            procutil.gui()
 
     def init(self):
         self._sock = socket.socket(socket.AF_UNIX)