Changeset - 26114d182efe
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 15 years ago 2011-02-10 23:45:44
marcin@python-works.com
added isoformat() that removes space from the renamed directory
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/repo.py
Show inline comments
 
@@ -317,13 +317,14 @@ class RepoModel(BaseModel):
 
        repository is no longer valid for rhodecode, can be undeleted later on
 
        by reverting the renames on this repository
 
        :param repo: repo object
 
        """
 
        rm_path = os.path.join(self.base_path, repo.repo_name)
 
        log.info("Removing %s", rm_path)
 
        #disable hg/git
 
        alias = repo.repo_type
 
        shutil.move(os.path.join(rm_path, '.%s' % alias),
 
                    os.path.join(rm_path, 'rm__.%s' % alias))
 
        #disable repo
 
        shutil.move(rm_path, os.path.join(self.base_path, 'rm__%s__%s' \
 
                                          % (datetime.today(), repo.repo_name)))
 
                                          % (datetime.today().isoformat(),
 
                                             repo.repo_name)))
0 comments (0 inline, 0 general)