Mercurial > kallithea
comparison rhodecode/model/repo.py @ 1492:7592484e84d3 beta
fixed exception message
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 28 Sep 2011 13:36:25 +0200 |
parents | b7563ad4e7ee |
children | bb6ba7442293 |
comparison
equal
deleted
inserted
replaced
1488:dc16211e7292 | 1492:7592484e84d3 |
---|---|
330 log.info('renaming repo from %s to %s', old, new) | 330 log.info('renaming repo from %s to %s', old, new) |
331 | 331 |
332 old_path = os.path.join(self.repos_path, old) | 332 old_path = os.path.join(self.repos_path, old) |
333 new_path = os.path.join(self.repos_path, new) | 333 new_path = os.path.join(self.repos_path, new) |
334 if os.path.isdir(new_path): | 334 if os.path.isdir(new_path): |
335 raise Exception('Was trying to rename to already existing dir %s', | 335 raise Exception('Was trying to rename to already existing dir %s' \ |
336 new_path) | 336 % new_path) |
337 shutil.move(old_path, new_path) | 337 shutil.move(old_path, new_path) |
338 | 338 |
339 def __delete_repo(self, repo): | 339 def __delete_repo(self, repo): |
340 """ | 340 """ |
341 removes repo from filesystem, the removal is acctually made by | 341 removes repo from filesystem, the removal is acctually made by |