Mercurial > kallithea
comparison rhodecode/model/repo.py @ 1020:26114d182efe beta
added isoformat() that removes space from the renamed directory
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 10 Feb 2011 23:45:44 +0100 |
parents | ade3414a8b61 |
children | f42ee60e673b |
comparison
equal
deleted
inserted
replaced
1019:e4b7cfeb2eea | 1020:26114d182efe |
---|---|
324 alias = repo.repo_type | 324 alias = repo.repo_type |
325 shutil.move(os.path.join(rm_path, '.%s' % alias), | 325 shutil.move(os.path.join(rm_path, '.%s' % alias), |
326 os.path.join(rm_path, 'rm__.%s' % alias)) | 326 os.path.join(rm_path, 'rm__.%s' % alias)) |
327 #disable repo | 327 #disable repo |
328 shutil.move(rm_path, os.path.join(self.base_path, 'rm__%s__%s' \ | 328 shutil.move(rm_path, os.path.join(self.base_path, 'rm__%s__%s' \ |
329 % (datetime.today(), repo.repo_name))) | 329 % (datetime.today().isoformat(), |
330 repo.repo_name))) |