41 'largefiles' or 'normal') |
41 'largefiles' or 'normal') |
42 @param projectFile file name of the current project file (string) |
42 @param projectFile file name of the current project file (string) |
43 @exception ValueError raised to indicate a bad value for the |
43 @exception ValueError raised to indicate a bad value for the |
44 'direction' parameter. |
44 'direction' parameter. |
45 """ |
45 """ |
|
46 from .LfConvertDataDialog import LfConvertDataDialog |
|
47 |
46 if direction not in ["largefiles", "normal"]: |
48 if direction not in ["largefiles", "normal"]: |
47 raise ValueError("Bad value for 'direction' parameter.") |
49 raise ValueError("Bad value for 'direction' parameter.") |
48 |
50 |
49 projectDir = os.path.dirname(projectFile) |
51 projectDir = os.path.dirname(projectFile) |
50 |
|
51 from .LfConvertDataDialog import LfConvertDataDialog |
|
52 |
52 |
53 dlg = LfConvertDataDialog(projectDir, direction) |
53 dlg = LfConvertDataDialog(projectDir, direction) |
54 if dlg.exec() == QDialog.DialogCode.Accepted: |
54 if dlg.exec() == QDialog.DialogCode.Accepted: |
55 newName, minSize, patterns = dlg.getData() |
55 newName, minSize, patterns = dlg.getData() |
56 newProjectFile = os.path.join(newName, os.path.basename(projectFile)) |
56 newProjectFile = os.path.join(newName, os.path.basename(projectFile)) |
147 """ |
147 """ |
148 Public method to pull missing large files into the local repository. |
148 Public method to pull missing large files into the local repository. |
149 |
149 |
150 @param revisions list of revisions to pull (list of string) |
150 @param revisions list of revisions to pull (list of string) |
151 """ |
151 """ |
|
152 from .LfRevisionsInputDialog import LfRevisionsInputDialog |
|
153 |
152 revs = [] |
154 revs = [] |
153 if revisions: |
155 if revisions: |
154 revs = revisions |
156 revs = revisions |
155 else: |
157 else: |
156 from .LfRevisionsInputDialog import LfRevisionsInputDialog |
|
157 |
|
158 dlg = LfRevisionsInputDialog() |
158 dlg = LfRevisionsInputDialog() |
159 if dlg.exec() == QDialog.DialogCode.Accepted: |
159 if dlg.exec() == QDialog.DialogCode.Accepted: |
160 revs = dlg.getRevisions() |
160 revs = dlg.getRevisions() |
161 |
161 |
162 if revs: |
162 if revs: |