##// 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 :param recursive: recursive search and return names with subdirs in front
156 :param recursive: recursive search and return names with subdirs in front
157 """
157 """
158
158
159 if path.endswith(os.sep):
160 #remove ending slash for better results
159 # remove ending slash for better results
161 path = path[:-1]
160 path = path.rstrip('/')
162
161
163 def _get_repos(p):
162 def _get_repos(p):
164 if not os.access(p, os.W_OK):
163 if not os.access(p, os.W_OK):
@@ -169,7 +168,7 b' def get_repos(path, recursive=False):'
169 cur_path = os.path.join(p, dirpath)
168 cur_path = os.path.join(p, dirpath)
170 try:
169 try:
171 scm_info = get_scm(cur_path)
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 except VCSError:
172 except VCSError:
174 if not recursive:
173 if not recursive:
175 continue
174 continue
General Comments 0
You need to be logged in to leave comments. Login now