##// END OF EJS Templates
scm: clear the cs cache on delete/remap
dan -
r337:e35f8ec4 default
parent child Browse files
Show More
@@ -279,11 +279,7 b' class ScmModel(BaseModel):'
279 if repo:
279 if repo:
280 config = repo._config
280 config = repo._config
281 config.set('extensions', 'largefiles', '')
281 config.set('extensions', 'largefiles', '')
282 cs_cache = None
282 repo.update_commit_cache(config=config, cs_cache=None)
283 if delete:
284 # if we do a hard clear, reset last-commit to Empty
285 cs_cache = EmptyCommit()
286 repo.update_commit_cache(config=config, cs_cache=cs_cache)
287 caches.clear_repo_caches(repo_name)
283 caches.clear_repo_caches(repo_name)
288
284
289 def toggle_following_repo(self, follow_repo_id, user_id):
285 def toggle_following_repo(self, follow_repo_id, user_id):
General Comments 0
You need to be logged in to leave comments. Login now