Plugins/VcsPlugins/vcsMercurial/HgStatusMonitorThread.py

changeset 5104
0b9420dc1093
parent 4631
5c1a96925da4
child 5389
9b1c800daff3
equal deleted inserted replaced
5102:9cc5217881ab 5104:0b9420dc1093
58 a status message in case of non successful operation (string) 58 a status message in case of non successful operation (string)
59 """ 59 """
60 self.shouldUpdate = False 60 self.shouldUpdate = False
61 61
62 if self.__client is None and not self.__useCommandLine: 62 if self.__client is None and not self.__useCommandLine:
63 if self.vcs.version >= (2, 9, 9): 63 from .HgClient import HgClient
64 # versions below that have a bug causing a second 64 client = HgClient(self.projectDir, "utf-8", self.vcs)
65 # instance to not recognize changes to the status 65 ok, err = client.startServer()
66 from .HgClient import HgClient 66 if ok:
67 client = HgClient(self.projectDir, "utf-8", self.vcs) 67 self.__client = client
68 ok, err = client.startServer()
69 if ok:
70 self.__client = client
71 else:
72 self.__useCommandLine = True
73 else: 68 else:
74 self.__useCommandLine = True 69 self.__useCommandLine = True
75 70
76 # step 1: get overall status 71 # step 1: get overall status
77 args = self.vcs.initCommand("status") 72 args = self.vcs.initCommand("status")

eric ide

mercurial