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 if self.vcs.version >= (2, 9, 9): |
64 # versions below that have a bug causing a second |
64 # versions below that have a bug causing a second |
65 # instance to not recognize changes to the status |
65 # instance to not recognize changes to the status |
66 from .HgClient import HgClient |
66 from .HgClient import HgClient |
67 client = HgClient(self.projectDir, "utf-8") |
67 client = HgClient(self.projectDir, "utf-8", self.vcs) |
68 ok, err = client.startServer() |
68 ok, err = client.startServer() |
69 if ok: |
69 if ok: |
70 self.__client = client |
70 self.__client = client |
71 else: |
71 else: |
72 self.__useCommandLine = True |
72 self.__useCommandLine = True |