1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed f317572

qtapp: use the same variable name for data transferred via IPC channel

  • Participants
  • Parent commits 8c5f2f5
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/qtapp.py

View file
  • Ignore whitespace
         socket = self._server.nextPendingConnection()
         if socket:
             socket.waitForReadyRead(10000)
-            root = str(socket.readAll())
-            if root and root != '[echo]':
-                self.showRepoInWorkbench(hglib.tounicode(root))
+            data = str(socket.readAll())
+            if data and data != '[echo]':
+                uroot = hglib.tounicode(data)
+                self.showRepoInWorkbench(uroot)
 
                 # Bring the workbench window to the front
                 # This assumes that the client process has
                 # Revoke the blanket permission to set the foreground window
                 allowSetForegroundWindow(os.getpid())
 
-            socket.write(QByteArray(root))
+            socket.write(QByteArray(data))
             socket.flush()