Changeset - 7592484e84d3
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2011-09-28 13:36:25
marcin@python-works.com
fixed exception message
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/repo.py
Show inline comments
 
modified file chmod 100644 => 100755
 
@@ -329,14 +329,14 @@ class RepoModel(BaseModel):
 
        """
 
        log.info('renaming repo from %s to %s', old, new)
 

	
 
        old_path = os.path.join(self.repos_path, old)
 
        new_path = os.path.join(self.repos_path, new)
 
        if os.path.isdir(new_path):
 
            raise Exception('Was trying to rename to already existing dir %s',
 
                            new_path)
 
            raise Exception('Was trying to rename to already existing dir %s' \
 
            		     % new_path)
 
        shutil.move(old_path, new_path)
 

	
 
    def __delete_repo(self, repo):
 
        """
 
        removes repo from filesystem, the removal is acctually made by
 
        added rm__ prefix into dir, and rename internat .hg/.git dirs so this
0 comments (0 inline, 0 general)