Show More
@@ -152,12 +152,15 b' def get_repos(path, recursive=False):' | |||||
152 | from vcs.utils.helpers import get_scm |
|
152 | from vcs.utils.helpers import get_scm | |
153 | from vcs.exceptions import VCSError |
|
153 | from vcs.exceptions import VCSError | |
154 |
|
154 | |||
155 |
if path.endswith( |
|
155 | if path.endswith(os.sep): | |
156 |
# |
|
156 | #remove ending slash for better results | |
157 | path = path[:-1] |
|
157 | path = path[:-1] | |
158 |
|
158 | |||
159 | def _get_repos(p): |
|
159 | def _get_repos(p): | |
|
160 | if not os.access(p, os.W_OK): | |||
|
161 | return | |||
160 | for dirpath in os.listdir(p): |
|
162 | for dirpath in os.listdir(p): | |
|
163 | print dirpath | |||
161 | if os.path.isfile(os.path.join(p, dirpath)): |
|
164 | if os.path.isfile(os.path.join(p, dirpath)): | |
162 | continue |
|
165 | continue | |
163 | cur_path = os.path.join(p, dirpath) |
|
166 | cur_path = os.path.join(p, dirpath) | |
@@ -616,7 +619,6 b' def create_test_env(repos_test_path, con' | |||||
616 | tar.extractall(jn(TESTS_TMP_PATH, HG_REPO)) |
|
619 | tar.extractall(jn(TESTS_TMP_PATH, HG_REPO)) | |
617 | tar.close() |
|
620 | tar.close() | |
618 |
|
621 | |||
619 |
|
||||
620 | #============================================================================== |
|
622 | #============================================================================== | |
621 | # PASTER COMMANDS |
|
623 | # PASTER COMMANDS | |
622 | #============================================================================== |
|
624 | #============================================================================== |
General Comments 0
You need to be logged in to leave comments.
Login now