##// END OF EJS Templates
cleanup would recurse into every leaf and could thus not be used on lots of...
marcink -
r3384:95c38de4 beta
parent child Browse files
Show More
@@ -85,10 +85,17 b' class Command(BasePasterCommand):'
85 85 repos_location = RhodeCodeUi.get_repos_location()
86 86 to_remove = []
87 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 94 if REMOVED_REPO_PAT.match(loc):
90 95 to_remove.append([os.path.join(dn, loc),
91 96 self._extract_date(loc)])
97 else:
98 dirs.append(loc)
92 99
93 100 #filter older than (if present)!
94 101 now = datetime.datetime.now()
General Comments 0
You need to be logged in to leave comments. Login now