diff options
Diffstat (limited to 'gitc_utils.py')
-rw-r--r-- | gitc_utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gitc_utils.py b/gitc_utils.py index 45920b07..11284e20 100644 --- a/gitc_utils.py +++ b/gitc_utils.py | |||
@@ -29,12 +29,15 @@ from error import ManifestParseError | |||
29 | 29 | ||
30 | NUM_BATCH_RETRIEVE_REVISIONID = 32 | 30 | NUM_BATCH_RETRIEVE_REVISIONID = 32 |
31 | 31 | ||
32 | |||
32 | def get_gitc_manifest_dir(): | 33 | def get_gitc_manifest_dir(): |
33 | return wrapper.Wrapper().get_gitc_manifest_dir() | 34 | return wrapper.Wrapper().get_gitc_manifest_dir() |
34 | 35 | ||
36 | |||
35 | def parse_clientdir(gitc_fs_path): | 37 | def parse_clientdir(gitc_fs_path): |
36 | return wrapper.Wrapper().gitc_parse_clientdir(gitc_fs_path) | 38 | return wrapper.Wrapper().gitc_parse_clientdir(gitc_fs_path) |
37 | 39 | ||
40 | |||
38 | def _set_project_revisions(projects): | 41 | def _set_project_revisions(projects): |
39 | """Sets the revisionExpr for a list of projects. | 42 | """Sets the revisionExpr for a list of projects. |
40 | 43 | ||
@@ -63,6 +66,7 @@ def _set_project_revisions(projects): | |||
63 | (proj.remote.url, proj.revisionExpr)) | 66 | (proj.remote.url, proj.revisionExpr)) |
64 | proj.revisionExpr = revisionExpr | 67 | proj.revisionExpr = revisionExpr |
65 | 68 | ||
69 | |||
66 | def _manifest_groups(manifest): | 70 | def _manifest_groups(manifest): |
67 | """Returns the manifest group string that should be synced | 71 | """Returns the manifest group string that should be synced |
68 | 72 | ||
@@ -77,6 +81,7 @@ def _manifest_groups(manifest): | |||
77 | groups = 'default,platform-' + platform.system().lower() | 81 | groups = 'default,platform-' + platform.system().lower() |
78 | return groups | 82 | return groups |
79 | 83 | ||
84 | |||
80 | def generate_gitc_manifest(gitc_manifest, manifest, paths=None): | 85 | def generate_gitc_manifest(gitc_manifest, manifest, paths=None): |
81 | """Generate a manifest for shafsd to use for this GITC client. | 86 | """Generate a manifest for shafsd to use for this GITC client. |
82 | 87 | ||
@@ -140,6 +145,7 @@ def generate_gitc_manifest(gitc_manifest, manifest, paths=None): | |||
140 | # Save the manifest. | 145 | # Save the manifest. |
141 | save_manifest(manifest) | 146 | save_manifest(manifest) |
142 | 147 | ||
148 | |||
143 | def save_manifest(manifest, client_dir=None): | 149 | def save_manifest(manifest, client_dir=None): |
144 | """Save the manifest file in the client_dir. | 150 | """Save the manifest file in the client_dir. |
145 | 151 | ||