36 Public slot to convert the repository format of the current project. |
36 Public slot to convert the repository format of the current project. |
37 |
37 |
38 @param direction direction of the conversion (string, one of |
38 @param direction direction of the conversion (string, one of |
39 'largefiles' or 'normal') |
39 'largefiles' or 'normal') |
40 @param projectFile file name of the current project file (string) |
40 @param projectFile file name of the current project file (string) |
41 """ |
41 @exception ValueError raised to indicate a bad value for the |
42 assert direction in ["largefiles", "normal"] |
42 'direction' parameter. |
|
43 """ |
|
44 if direction not in ["largefiles", "normal"]: |
|
45 raise ValueError("Bad value for 'direction' parameter.") |
43 |
46 |
44 projectDir = os.path.dirname(projectFile) |
47 projectDir = os.path.dirname(projectFile) |
45 |
48 |
46 # find the root of the repo |
49 # find the root of the repo |
47 repodir = projectDir |
50 repodir = projectDir |