40 def hgFetch(self, name): |
40 def hgFetch(self, name): |
41 """ |
41 """ |
42 Public method to fetch changes from a remote repository. |
42 Public method to fetch changes from a remote repository. |
43 |
43 |
44 @param name file/directory name (string) |
44 @param name file/directory name (string) |
|
45 @return flag indicating that the project should be reread (boolean) |
45 """ |
46 """ |
46 # find the root of the repo |
47 # find the root of the repo |
47 repodir = self.vcs.splitPath(name)[0] |
48 repodir = self.vcs.splitPath(name)[0] |
48 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
49 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
49 repodir = os.path.dirname(repodir) |
50 repodir = os.path.dirname(repodir) |
50 if repodir == os.sep: |
51 if repodir == os.sep: |
51 return |
52 return False |
52 |
53 |
53 res = False |
54 res = False |
54 dlg = HgFetchDialog() |
55 dlg = HgFetchDialog() |
55 if dlg.exec_() == QDialog.Accepted: |
56 if dlg.exec_() == QDialog.Accepted: |
56 message, switchParent = dlg.getData() |
57 message, switchParent = dlg.getData() |