Changeset - 069e13b4dddc
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-07-06 00:09:10
marcin@python-works.com
removed %f from datetime formatting doesn't work on py25 :/
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/repo.py
Show inline comments
 
@@ -532,6 +532,8 @@ class RepoModel(BaseModel):
 
            shutil.move(os.path.join(rm_path, '.%s' % alias),
 
                        os.path.join(rm_path, 'rm__.%s' % alias))
 
        # disable repo
 
        _d = 'rm__%s__%s' % (datetime.now().strftime('%Y%m%d_%H%M%S_%f'),
 
        _now = datetime.now()
 
        _ms = str(_now.microsecond)
 
        _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))
0 comments (0 inline, 0 general)