Show More
@@ -85,10 +85,17 b' class Command(BasePasterCommand):' | |||||
85 | repos_location = RhodeCodeUi.get_repos_location() |
|
85 | repos_location = RhodeCodeUi.get_repos_location() | |
86 | to_remove = [] |
|
86 | to_remove = [] | |
87 | for dn, dirs, f in os.walk(safe_str(repos_location)): |
|
87 | for dn, dirs, f in os.walk(safe_str(repos_location)): | |
88 | for loc in dirs: |
|
88 | alldirs = list(dirs) | |
|
89 | del dirs[:] | |||
|
90 | if ('.hg' in alldirs or | |||
|
91 | 'objects' in alldirs and ('refs' in alldirs or 'packed-refs' in f)): | |||
|
92 | continue | |||
|
93 | for loc in alldirs: | |||
89 | if REMOVED_REPO_PAT.match(loc): |
|
94 | if REMOVED_REPO_PAT.match(loc): | |
90 | to_remove.append([os.path.join(dn, loc), |
|
95 | to_remove.append([os.path.join(dn, loc), | |
91 | self._extract_date(loc)]) |
|
96 | self._extract_date(loc)]) | |
|
97 | else: | |||
|
98 | dirs.append(loc) | |||
92 |
|
99 | |||
93 | #filter older than (if present)! |
|
100 | #filter older than (if present)! | |
94 | now = datetime.datetime.now() |
|
101 | now = datetime.datetime.now() |
General Comments 0
You need to be logged in to leave comments.
Login now