Mercurial > kallithea
changeset 2592:f6800c5e5b2d beta
fill miliseconds with 0 since it can return <6 digit number
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 11 Jul 2012 22:49:44 +0200 |
parents | 86c544532840 |
children | 16a6a2f5d422 |
files | rhodecode/model/repo.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/model/repo.py Wed Jul 11 19:31:44 2012 +0200 +++ b/rhodecode/model/repo.py Wed Jul 11 22:49:44 2012 +0200 @@ -533,7 +533,7 @@ os.path.join(rm_path, 'rm__.%s' % alias)) # disable repo _now = datetime.now() - _ms = str(_now.microsecond) + _ms = str(_now.microsecond).rjust(6, '0') _d = 'rm__%s__%s' % (_now.strftime('%Y%m%d_%H%M%S_' + _ms), repo.repo_name) shutil.move(rm_path, os.path.join(self.repos_path, _d))