38 """ |
38 """ |
39 # find the root of the repo |
39 # find the root of the repo |
40 repodir = self.vcs.splitPath(name)[0] |
40 repodir = self.vcs.splitPath(name)[0] |
41 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
41 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
42 repodir = os.path.dirname(repodir) |
42 repodir = os.path.dirname(repodir) |
43 if repodir == os.sep: |
43 if os.path.splitdrive(repodir)[1] == os.sep: |
44 return False |
44 return False |
45 |
45 |
46 res = False |
46 res = False |
47 dlg = HgFetchDialog() |
47 dlg = HgFetchDialog() |
48 if dlg.exec_() == QDialog.Accepted: |
48 if dlg.exec_() == QDialog.Accepted: |