172 |
172 |
173 # find the root of the repo |
173 # find the root of the repo |
174 repodir = self.dname |
174 repodir = self.dname |
175 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
175 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
176 repodir = os.path.dirname(repodir) |
176 repodir = os.path.dirname(repodir) |
177 if repodir == os.sep: |
177 if os.path.splitdrive(repodir)[1] == os.sep: |
178 return |
178 return |
179 |
179 |
180 self.process.setWorkingDirectory(repodir) |
180 self.process.setWorkingDirectory(repodir) |
181 |
181 |
182 self.setWindowTitle(self.trUtf8('Mercurial Status')) |
182 self.setWindowTitle(self.trUtf8('Mercurial Status')) |