# HG changeset patch # User Marcin Kuzminski # Date 2012-10-22 12:26:00 # Node ID d37b79ad0ae847f9ab90d1da261e9077938d81c7 # Parent bd97aba292f140956a820b9c76531b6ea04a1fda Fixed issue with rm__ system that put removed repos in root location, it can lead to making a heavy copy, and remove operation. diff --git a/rhodecode/model/repo.py b/rhodecode/model/repo.py --- a/rhodecode/model/repo.py +++ b/rhodecode/model/repo.py @@ -544,5 +544,8 @@ class RepoModel(BaseModel): _now = datetime.now() _ms = str(_now.microsecond).rjust(6, '0') _d = 'rm__%s__%s' % (_now.strftime('%Y%m%d_%H%M%S_' + _ms), - repo.repo_name) + repo.just_name) + if repo.group: + args = repo.group.full_path_splitted + [_d] + _d = os.path.join(*args) shutil.move(rm_path, os.path.join(self.repos_path, _d))