##// END OF EJS Templates
fixes issue #331 RC mangles repository names if the a repository group contains the "full path" to the repositories
marcink -
r1820:9130fa3c beta
parent child Browse files
Show More
@@ -156,9 +156,8 b' def get_repos(path, recursive=False):'
156 156 :param recursive: recursive search and return names with subdirs in front
157 157 """
158 158
159 if path.endswith(os.sep):
160 159 #remove ending slash for better results
161 path = path[:-1]
160 path = path.rstrip('/')
162 161
163 162 def _get_repos(p):
164 163 if not os.access(p, os.W_OK):
@@ -169,7 +168,7 b' def get_repos(path, recursive=False):'
169 168 cur_path = os.path.join(p, dirpath)
170 169 try:
171 170 scm_info = get_scm(cur_path)
172 yield scm_info[1].split(path)[-1].lstrip(os.sep), scm_info
171 yield scm_info[1].split(path, 1)[-1].lstrip(os.sep), scm_info
173 172 except VCSError:
174 173 if not recursive:
175 174 continue
General Comments 0
You need to be logged in to leave comments. Login now