Mercurial > kallithea
comparison rhodecode/lib/utils.py @ 1196:49ea527452d3 beta
fixes for issue #148
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 02 Apr 2011 00:55:26 +0200 |
parents | bc3dafd0e24c |
children | 6832ef664673 |
comparison
equal
deleted
inserted
replaced
1195:74251f8004d2 | 1196:49ea527452d3 |
---|---|
163 if os.path.isfile(os.path.join(p, dirpath)): | 163 if os.path.isfile(os.path.join(p, dirpath)): |
164 continue | 164 continue |
165 cur_path = os.path.join(p, dirpath) | 165 cur_path = os.path.join(p, dirpath) |
166 try: | 166 try: |
167 scm_info = get_scm(cur_path) | 167 scm_info = get_scm(cur_path) |
168 yield scm_info[1].split(path)[-1].lstrip('/'), scm_info | 168 yield scm_info[1].split(path)[-1].lstrip(os.sep), scm_info |
169 except VCSError: | 169 except VCSError: |
170 if not recursive: | 170 if not recursive: |
171 continue | 171 continue |
172 #check if this dir containts other repos for recursive scan | 172 #check if this dir containts other repos for recursive scan |
173 rec_path = os.path.join(p, dirpath) | 173 rec_path = os.path.join(p, dirpath) |