diff options
Diffstat (limited to 'gitc_utils.py')
-rw-r--r-- | gitc_utils.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/gitc_utils.py b/gitc_utils.py index dd38f890..0f3e1818 100644 --- a/gitc_utils.py +++ b/gitc_utils.py | |||
@@ -24,23 +24,13 @@ import git_command | |||
24 | import git_config | 24 | import git_config |
25 | import wrapper | 25 | import wrapper |
26 | 26 | ||
27 | GITC_FS_ROOT_DIR = '/gitc/manifest-rw/' | ||
28 | NUM_BATCH_RETRIEVE_REVISIONID = 300 | 27 | NUM_BATCH_RETRIEVE_REVISIONID = 300 |
29 | 28 | ||
30 | def get_gitc_manifest_dir(): | 29 | def get_gitc_manifest_dir(): |
31 | return wrapper.Wrapper().get_gitc_manifest_dir() | 30 | return wrapper.Wrapper().get_gitc_manifest_dir() |
32 | 31 | ||
33 | def parse_clientdir(gitc_fs_path): | 32 | def parse_clientdir(gitc_fs_path): |
34 | """Parse a path in the GITC FS and return its client name. | 33 | return wrapper.Wrapper().gitc_parse_clientdir(gitc_fs_path) |
35 | |||
36 | @param gitc_fs_path: A subdirectory path within the GITC_FS_ROOT_DIR. | ||
37 | |||
38 | @returns: The GITC client name | ||
39 | """ | ||
40 | if (gitc_fs_path == GITC_FS_ROOT_DIR or | ||
41 | not gitc_fs_path.startswith(GITC_FS_ROOT_DIR)): | ||
42 | return None | ||
43 | return gitc_fs_path.split(GITC_FS_ROOT_DIR)[1].split('/')[0] | ||
44 | 34 | ||
45 | def _set_project_revisions(projects): | 35 | def _set_project_revisions(projects): |
46 | """Sets the revisionExpr for a list of projects. | 36 | """Sets the revisionExpr for a list of projects. |