eric6/Plugins/VcsPlugins/vcsMercurial/LargefilesExtension/largefiles.py

changeset 7628
f904d0eef264
parent 7360
9190402e4505
child 7759
51aa6c6b66f7
equal deleted inserted replaced
7626:7f643d41464e 7628:f904d0eef264
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

eric ide

mercurial