Commits

Yuya Nishihara committed 2537f86

workbench: fix unicode error when opening repo via IPC channel (fixes #2135)

As workbench.run() sends root path in local encoding, it should use _openRepo()
directly.

  • Participants
  • Parent commits 9cf6920
  • Branches stable

Comments (0)

Files changed (1)

tortoisehg/hgqt/workbench.py

         socket = self.server.nextPendingConnection()
         if socket:
             socket.waitForReadyRead(10000)
-            root = socket.readAll()
+            root = str(socket.readAll())
             if root and root != '[echo]':
-                self.openRepo(root, reuse=True)
+                self._openRepo(root, reuse=True)
 
                 # Bring the workbench window to the front
                 # This assumes that the client process has