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") |