63 |
61 |
64 @param projectDir name of the project directory |
62 @param projectDir name of the project directory |
65 @type str |
63 @type str |
66 """ |
64 """ |
67 # find the root of the repo |
65 # find the root of the repo |
68 self.__repodir = projectDir |
66 self.__repodir = self.__vcs.findRepoRoot(projectDir) |
69 while not os.path.isdir(os.path.join(self.__repodir, self.__vcs.adminDir)): |
67 if not self.__repodir: |
70 self.__repodir = os.path.dirname(self.__repodir) |
68 return |
71 if os.path.splitdrive(self.__repodir)[1] == os.sep: |
|
72 return |
|
73 |
69 |
74 self.errorGroup.hide() |
70 self.errorGroup.hide() |
75 self.errors.clear() |
71 self.errors.clear() |
76 self.statusList.clear() |
72 self.statusList.clear() |
77 self.buttonBox.setEnabled(False) |
73 self.buttonBox.setEnabled(False) |