Mercurial > kallithea
diff rhodecode/model/repos_group.py @ 1539:bd604cf75c5a beta
fixes #260 Put repo in group, then move group to another group -> repo becomes unavailable
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 10 Oct 2011 03:27:31 +0200 |
parents | 27be8f94c207 |
children | ada6926c374f |
line wrap: on
line diff
--- a/rhodecode/model/repos_group.py Mon Oct 10 02:09:52 2011 +0200 +++ b/rhodecode/model/repos_group.py Mon Oct 10 03:27:31 2011 +0200 @@ -137,6 +137,12 @@ self.__rename_group(old_path, new_path) + # we need to get all repositories from this new group and + # rename them accordingly to new group path + for r in repos_group.repositories: + r.repo_name = r.get_new_name(r.just_name) + self.sa.add(r) + self.sa.commit() return repos_group except: