45 # find the root of the repo |
45 # find the root of the repo |
46 repodir = projectDir |
46 repodir = projectDir |
47 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
47 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
48 repodir = os.path.dirname(repodir) |
48 repodir = os.path.dirname(repodir) |
49 if os.path.splitdrive(repodir)[1] == os.sep: |
49 if os.path.splitdrive(repodir)[1] == os.sep: |
50 return False |
50 return |
51 |
51 |
52 from .LfConvertDataDialog import LfConvertDataDialog |
52 from .LfConvertDataDialog import LfConvertDataDialog |
53 dlg = LfConvertDataDialog(projectDir, direction) |
53 dlg = LfConvertDataDialog(projectDir, direction) |
54 if dlg.exec_() == QDialog.Accepted: |
54 if dlg.exec_() == QDialog.Accepted: |
55 newName, minSize, patterns = dlg.getData() |
55 newName, minSize, patterns = dlg.getData() |
99 |
99 |
100 def hgAdd(self, names, mode): |
100 def hgAdd(self, names, mode): |
101 """ |
101 """ |
102 Public method used to add a file to the Mercurial repository. |
102 Public method used to add a file to the Mercurial repository. |
103 |
103 |
104 @param name file name(s) to be added (string or list of string) |
104 @param names file name(s) to be added (string or list of string) |
105 @param mode add mode (string one of 'normal' or 'large') |
105 @param mode add mode (string one of 'normal' or 'large') |
106 """ |
106 """ |
107 args = self.vcs.initCommand("add") |
107 args = self.vcs.initCommand("add") |
108 args.append("-v") |
108 args.append("-v") |
109 if mode == "large": |
109 if mode == "large": |